graphql-engine/community/sample-apps/nextjs-postgres-graphql/config.js

11 lines
263 B
JavaScript

import { withData } from 'next-apollo'
import { HttpLink } from 'apollo-link-http'
const config = {
link: new HttpLink({
uri: 'http://localhost:8080/v1/graphql', // <- Configure GraphQL Server URL (must be absolute)
})
}
export default withData(config)