We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want people to be able to put graphql queries into a text box and then run those queries against the GraphQL server.
So I have this: let mutation = await astra.getQuery();
and then I want to do this: astra.client.mutate(mutation: gql{mutation})
{mutation}
Or some such. Any way to do this?
The text was updated successfully, but these errors were encountered:
I got this far: let mutation = await astra.getQuery(); console.log(mutation) console.log(gql([mutation]))
Neither works. The string is:
mutation createTables { cavemen: createTable( keyspaceName: "workshop", tableName: "cavemen", partitionKeys: [{name: "lastname", type: {basic: TEXT}}], clusteringKeys: [{name: "firstname", type: {basic: TEXT}}], values: [ { name: "occupation", type: {basic: TEXT} } ] )}
It works fine when I pass it explicitly but I need the user to be able to copy/paste
Sorry, something went wrong.
Any updates on this?
No branches or pull requests
I want people to be able to put graphql queries into a text box and then run those queries against the GraphQL server.
So I have this:
let mutation = await astra.getQuery();
and then I want to do this:
astra.client.mutate(mutation: gql
{mutation}
)Or some such. Any way to do this?
The text was updated successfully, but these errors were encountered: