Skip to content

Matrixbirds/graphql-practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requirements

  • bcrypt dependence python2 command take care and confim dev environment installed python2 and must be named python2

My toolkit

  • repl console
# enter console with orm context
./bin/cli
  • graphql code snippet generator
./bin/graphql type comment --attrs id:GraphQLInteger title:GraphQLString content:GraphQLString
./bin/graphql mutation article --attrs id:GraphQLInteger title:GraphQLString content:GraphQLString -m create update destroy

Query Example

curl -i -H "Content-Type: application/json" -X POST \
-d '{"query": "query GRAPHQL_PAYLOAD"}' \
 https://localhost:3000/graphql

Mutation Example

curl --request POST \
 --url https://localhost:3000/graphql \
 --header 'content-type: application/json' \
-d '{"query": "mutation(input: GRAPHQL_INPUT!) GRAPHQL_PAYLOAD", "variables": "VARIABLES"}' \

About

another graphql practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published