Change default schema location to /graphql/schema.graphqls
This commit changes the default location for the GraphQL schema from `classpath:schema.graphqls` to `classpath:/graphql/schema.graphqls`. We're also adding `.graphqlconfig` files that are leveraged by a GraphQL JS plugin in IntelliJ IDEA. Closes gh-44
This commit is contained in:
15
samples/webflux-websocket/.graphqlconfig
Normal file
15
samples/webflux-websocket/.graphqlconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "Spring WebFlux+WebSocket GraphQL Sample Schema",
|
||||
"schemaPath": "src/main/resources/graphql/schema.graphqls",
|
||||
"extensions": {
|
||||
"endpoints": {
|
||||
"Local GraphQL Endpoint": {
|
||||
"url": "http://localhost:8080/graphql",
|
||||
"headers": {
|
||||
"user-agent": "JS GraphQL"
|
||||
},
|
||||
"introspect": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
samples/webmvc-http/.graphqlconfig
Normal file
15
samples/webmvc-http/.graphqlconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "Spring MVC GraphQL Sample Schema",
|
||||
"schemaPath": "src/main/resources/graphql/schema.graphqls",
|
||||
"extensions": {
|
||||
"endpoints": {
|
||||
"Local GraphQL Endpoint": {
|
||||
"url": "http://localhost:8080/graphql",
|
||||
"headers": {
|
||||
"user-agent": "JS GraphQL"
|
||||
},
|
||||
"introspect": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user