Giter VIP home page Giter VIP logo

Comments (10)

schickling avatar schickling commented on August 21, 2024 4

This is now fixed in [email protected]: prisma-labs/prisma-binding#44 🎉

from node-graphql-server.

kbrandwijk avatar kbrandwijk commented on August 21, 2024 2

@State0fMind @allanleonardjr This is fixed in the latest version of graphcool-binding.

from node-graphql-server.

akparhi avatar akparhi commented on August 21, 2024 1

@marktani the repo https://github.com/state0fmind/refract is a copy of node-advanced, just in es6

from node-graphql-server.

marktani avatar marktani commented on August 21, 2024

What do you mean it creates duplicate posts?

If you call this mutation once, one post should be created.
If you call this mutation twice, two posts should be created.

Do you observe a different behaviour?

from node-graphql-server.

akparhi avatar akparhi commented on August 21, 2024

Yes, whenever I press play button in the graphql playground ide, it creates two posts/users in create user/writepost mutation.

from node-graphql-server.

marktani avatar marktani commented on August 21, 2024

Yep, I can reproduce this. Here's what I tried:

  • can reproduce in Playground
  • can reproduce using cURL
  • cannot reproduce when writing the mutation manually against the Graphcool DB

This makes me believe the problem is in graphcool-binding, I am on version 0.3.5. I will look into the exact problem.

from node-graphql-server.

marktani avatar marktani commented on August 21, 2024

Hey @State0fMind, which boilerplate example are you following exactly?

from node-graphql-server.

allanleonardjr avatar allanleonardjr commented on August 21, 2024

Yikes @marktani, the duplication issue is occuring within my projects as well!
I've tested with the following templates:

  • node-basic
  • react-fullstack-basic

$ graphcool -v
graphcool/1.0.0-beta2.1.1 (darwin-x64) node-v8.4.0

$ graphql -v
2.2.4

from node-graphql-server.

marktani avatar marktani commented on August 21, 2024

Thanks! 🙌

from node-graphql-server.

allanleonardjr avatar allanleonardjr commented on August 21, 2024

Awesome, thanks!!!

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.