Giter VIP home page Giter VIP logo

Comments (5)

wesbos avatar wesbos commented on August 22, 2024 2

@Paddy-Hamilton make sure you run graphql create my-app --boilerplate node-advanced instead of just cloning this repo

from node-graphql-server.

Paddy-Hamilton avatar Paddy-Hamilton commented on August 22, 2024 1

@wesbos thanks for getting back so quickly and for the info

I think i didn't explain the situation properly, and I fixed the issue. it turns out i was trying to query a auto generated prisma database server query from the client without importing it into the graphql server schema. which obviously it didn't like.

Thanks for the help.

Also looking forward to your course on this....seems like i need some help 😄

from node-graphql-server.

wesbos avatar wesbos commented on August 22, 2024

Turns out I cloned the repo instead of using the graphql-cli to start it- thanks!

from node-graphql-server.

marktani avatar marktani commented on August 22, 2024

Thanks @wesbos, we should definitely support this use case as well. I created an according issue here: #171.

from node-graphql-server.

Paddy-Hamilton avatar Paddy-Hamilton commented on August 22, 2024

@wesbos @marktani can you elaborate on how you solved this, am currently getting a very similar error
whilst trying to run on http://localhost:4000.

[GraphQL error]: Message: Unknown type "Int"., Location: [object Object], Path: undefined
[GraphQL error]: Message: Unknown type "Int"., Location: [object Object], Path: undefined
[GraphQL error]: Message: Cannot query field "postsConnection" on type "Query"., Location: [object Object], Path: undefined
[GraphQL error]: Message: Cannot query field "posts" on type "Query". Did you mean "post"?, Location: [object Object], Path: undefined
[GraphQL error]: Message: Cannot query field "img" on type "Post"., Location: [object Object], Path: undefined
[Network error]: Error: Response not successful: Received status code 400

from node-graphql-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.