Skip to content

Using a cql file and graphql #2041

Answered by ivansenic
JonathanHo16 asked this question in Help
Discussion options

You must be logged in to vote

@JonathanHo16 Just to understand you have a .cql file with queries that initialize your CQL tables, right? I guess you can use the cqlsh to fire those queries, using something like cqlsh -u user -p password -f file.cql host port.

There is no way to pass the CQL file using the Stargate as far as I know. Not sure what are you using for deploying, but cqlsh is available in cassandra docker image and you can run the command from that image.

Furthermore, if you intention is to use GraphQL API, you can also opt for the schema-first approach. This way you can define your GraphQL schema without having any CQL queries. You can see more about this option here: https://stargate.io/docs/stargate/1.0/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeffreyscarpenter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants