Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
},
...
});
```