Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdgabriel/apollo-playground-config
Apollo Server Playground Configuration
https://github.com/jdgabriel/apollo-playground-config
Last synced: 10 days ago
JSON representation
Apollo Server Playground Configuration
- Host: GitHub
- URL: https://github.com/jdgabriel/apollo-playground-config
- Owner: jdgabriel
- License: mit
- Created: 2019-11-05T00:28:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T12:05:51.000Z (almost 2 years ago)
- Last Synced: 2024-04-28T06:03:51.679Z (7 months ago)
- Language: JavaScript
- Size: 181 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apollo Playground Config
Apollo Server Playground Configuration
```javascript
const config = {
projects: {
app: {
// Project Name
// Load shcemas - not require
schemaPath: "src/schema.graphql",
// Load the includes files - not required
includes: ["queries/{booking,queries}.graphql"],
extensions: {
// Required
endpoints: {
dev: {
// Module in develop
// You can get external schemas with external urls
url: "https://localhost:4000/",
// Headers develop
headers: {
Authorization: "Bearer bearer_token_provider"
}
}
}
}
}
}
};const server = new ApolloServer({
...
playground: {
config
},
...
});
```