Add a GraphQL Query
- Create a directory for your GraphQL files:
src/main/graphql/com/example/ - Add your
schema.jsonto the directory:src/main/graphql/com/example/schema.json - Put your query in a
.graphqlfile, next to the schema:src/main/graphql/com/example/LaunchDetails.graphql
query LaunchDetails($id:ID!) {
launch(id: $id) {
id
site
mission {
name
missionPatch(size:LARGE)
}
}
}
- Build your project, this will generate the model