Giter VIP home page Giter VIP logo

Comments (6)

patrick91 avatar patrick91 commented on June 3, 2024

Hi @Amangiri99 can you add a reproduction? 😊 thanks!

from strawberry.

Amangiri99 avatar Amangiri99 commented on June 3, 2024

Hit any of the graphql endpoints, by sending a query. The query shouldn't be a dict rather a list.
Example: --data β€œ[{\”query":"{something(id:\"examples\"){getSomething{Some}}}\”}]” \

Also I got this error while making request using curl command.

from strawberry.

patrick91 avatar patrick91 commented on June 3, 2024

@Amangiri99 how come you're sending a list? usually that's done when you want to run multiple operations (like batching)

from strawberry.

Amangiri99 avatar Amangiri99 commented on June 3, 2024

@patrick91 It's just a random error, that I came across while doing a peneration testing of my application. Also we won't be able to send a list from postman or graphql ide. This can only be sent using curl request

from strawberry.

patrick91 avatar patrick91 commented on June 3, 2024

@Amangiri99 yeah, but you could send a list using things like https://www.apollographql.com/docs/react/api/link/apollo-link-batch-http/

I don't think we should worry about lists with single items for now (batching will help with that), but maybe we can improve the error?

from strawberry.

Amangiri99 avatar Amangiri99 commented on June 3, 2024

@patrick91 Right, we should improve the error. We should send a generic error if a list is received instead of object.

from strawberry.

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.