User Tools

Site Tools


code:graphql:confrence2020

This is an old revision of the document!


Notes

  • One endpoint `/graphql`
    • Query
    • Mutation
    • Subscription
  • Return type
    • Enums are useful

Aliasing a query:

query {
  alias : totalPets(status:AVAILABLE)
}

Neat link

Handling multiple behaviours for a single endpoint

  • array of options, filters… handle on the server

Dont forget you can put two queries in one:

query{
  query1{...}
  query2{...}
}
code/graphql/confrence2020.1585588372.txt.gz · Last modified: by ltsover9000