DEV Community

Discussion on: My GraphQL Schema & Types Generation Workflow

Collapse
 
rbauhn profile image
Robin Bauhn

Nice guide! I ran into a problem with needing auth which is fixed by:

// ... Other settings
schema: {
    'http://host:4000/graphql': {
        headers: {
            Authorization: 'my-secret-token'
        }
    }
},
// ... other settings
Enter fullscreen mode Exit fullscreen mode
Collapse
 
praveenpuglia profile image
Praveen Puglia

Thanks a ton for this. Will probably need it in some scenarios.