Comments (2)
Thanks for reporting @AdrienLemaire. The problem is that the type definitions used by neo4j-graphql.js are not really the full "schema". The makeAugmentedSchema
process goes through a transformation process which adds input types, directive declarations, etc.
So one option would be to get the full GraphQL schema and push that to Apollo Graph Manager. An easy way to do this is to look at the "schema" tab in GraphQL Playground, or use the printSchema
function from graphql-js.
Another option would be to add the missing directive declarations to your typedefs:
directive @cypher(statement: String) on FIELD_DEFINITION
directive @relation(name: String, direction: _RelationDirections, from: String, to: String) on FIELD_DEFINITION | OBJECT
from grand-stack-starter.
Thanks @johnymontana ! That's what I finally understood yesterday on neo4j-graphql/neo4j-graphql-js#442
I settled by calling the graphql endpoint when running codegen to get the augmented schema
// apollo.config.js
module.exports = {
client: {
name: "Project [web]",
service: {
name: "project",
// This option uses the resulting schema from makeAugmentedSchema
url: "http://localhost:4001/graphql",
skipSSLValidation: true,
}
}
If you know what the remaining [GraphQL error]: 406: Not Acceptable
error is about, I'd really appreciate if you could share your hindsight on that other issue.
Closing this one :)
from grand-stack-starter.
Related Issues (20)
- Neo4j Community Edition GCP does not come with APOC installed HOT 1
- inferschema not able to create all relations
- Error seeding HOT 2
- Auth Directives not working in api netlify function
- Eslint version issue when running create-grandstack-app using react-ts HOT 1
- Error running npx create-grandstack-app related to failed "Creating scripts configuration..." HOT 1
- Couldn't use GRANDstack Starter properly HOT 3
- Error: Cannot find module 'neo4j-driver/lib/temporal-types' HOT 1
- Authentication with Grandstack starter not working with netlify deploy @neo4j/graphql HOT 1
- yarn create not working (but npx does)
- Users List reports an Error on initial setup HOT 1
- Server responded HTTP. HOT 2
- docker-compose image does not install `graphql` HOT 2
- Docker image seems to require 4.x, but has 3.x HOT 1
- When I try to seed the database I get the error "
- Unknown Bolt protocol version 0
- Why can't I query relationships of neo4j with custom query with cypher using Grandstack?
- Is This Repo Still Being Maintained? HOT 1
- Support Vue.js
- Docker-compose build fix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grand-stack-starter.