You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I found the gq very usefull, but I'm stil looking for the right syntax how to implement a gq with a mutation and a json input file for the variables.
Hello, I found the gq very usefull, but I'm stil looking for the right syntax how to implement a gq with a mutation and a json input file for the variables.
mutation looks like this:
queryFile:
mutation createRepository($input: CreateRepositoryInput!) {
createRepository(input: $input) {
clientMutationId
}
}
variableFile:
{
"input": {
"name" : "create-testrepo",
"visibility": "INTERNAL",
"description": "create test repository",
"ownerId": "xxxxxxxxxxxxxxxxxxxxx",
"teamId": "xxxxxxxxxxxxxxxxxx",
"hasIssuesEnabled": false,
"hasWikiEnabled": false
}
}
When I use this on the command line I get an error.
gq https://api.github.com/graphql -H "authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "content-type: application/json" --variableFile='./repodata' --queryFile='./query.gql
» Error: cannot parse header '--variableFile='./repodata'' (multiple ':')
Please advice how to use.
The text was updated successfully, but these errors were encountered: