add-query
- Create a directory for your GraphQL files:
src/main/graphql/com/example/
- Add your
schema.json
to the directory:src/main/graphql/com/example/schema.json
- Put your query in a
.graphql
file, next to the schema:src/main/graphql/com/example/LaunchDetails.graphql
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