Git Product home page Git Product logo

Comments (3)

mlipscombe avatar mlipscombe commented on June 15, 2024 1

This is fixed by merging @phryneas PR #24. I'll be pushing a new release to npm later today.

from postgraphile-plugin-nested-mutations.

frisi avatar frisi commented on June 15, 2024

i can confirm the bug and also that @phryneas PR #24 solves the issues.

from postgraphile-plugin-nested-mutations.

AndresGnu avatar AndresGnu commented on June 15, 2024

Hello I confirm this issue

My Table

CREATE TABLE "public"."app_permissions" (
  "id" bigserial PRIMARY KEY,
  "table_id" character varying(80) REFERENCES "public"."tables",
  "action" enum_crud,
  "group" character varying(40),
  "created_at" timestamp with time zone DEFAULT NOW(),
  "updated_at" timestamp with time zone,
  "deleted_at" timestamp with time zone
);
ALTER TABLE "public"."app_permissions"
  ADD CONSTRAINT "u_table_action_group_key" UNIQUE ("table_id", "action", "group");

table_id is ForeignKey
I have:

mutation{
  updateTableById(,input:{
    id:"BkBank",
    patch:{
      appPermissionsUsingId:{
         deleteByTableIdAndActionAndGroup:{
          group: "fastcont-sellers",
          action: C,
          tableId:"BkBank"
        }
      }
    }
  }){
    table{
      id
    }
  }
}

Response is:

{
  "errors": [
    {
      "message": "syntax error at or near \")\"",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "updateTableById"
      ]
    }
  ],
  "data": {
    "updateTableById": null
  }
}

from postgraphile-plugin-nested-mutations.

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.