We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We are getting an error "Logic error: operation hook returned 'undefined'." when no record found with any "*ById" query on any table.
This error seems to be coming from "graphql/oprational-hooks".
Environment to reproduce the issue:
Example to reproduce: Table: CREATE TABLE account ( "id" serial primary key, "firstName" text, "lastName" text, "dateOfBirth" date, "createdAt" timestamptz not null default now(), "updatedAt" timestamptz not null default now() )
Example to reproduce:
Table: CREATE TABLE account ( "id" serial primary key, "firstName" text, "lastName" text, "dateOfBirth" date, "createdAt" timestamptz not null default now(), "updatedAt" timestamptz not null default now() )
Table:
CREATE TABLE account ( "id" serial primary key, "firstName" text, "lastName" text, "dateOfBirth" date, "createdAt" timestamptz not null default now(), "updatedAt" timestamptz not null default now() )
Sample Request:
Note: Any non existing record id, example id = 10, a non existing record.
{ accountById(id: 10) { id } }
Sample Response: { "errors": [ { "message": "Logic error: operation hook returned 'undefined'.", "locations": [ { "line": 2, "column": 3 } ], "path": [ "accountById" ], "extensions": { "messages": [] } } ], "data": { "accountById": null } }
Sample Response:
{ "errors": [ { "message": "Logic error: operation hook returned 'undefined'.", "locations": [ { "line": 2, "column": 3 } ], "path": [ "accountById" ], "extensions": { "messages": [] } } ], "data": { "accountById": null } }
@benjie, Please let me know if you need any further information to reproduce the issue.
The text was updated successfully, but these errors were encountered:
Hitting this issue as well.
Sorry, something went wrong.
This is fixed in @graphile/operation-hooks@0.2.4 👍
@graphile/operation-hooks@0.2.4
No branches or pull requests
We are getting an error "Logic error: operation hook returned 'undefined'." when no record found with any "*ById" query on any table.
This error seems to be coming from "graphql/oprational-hooks".
Environment to reproduce the issue:
makePluginHook([OperationHooks, PgPubsub, subscriptionsLds]);
@benjie, Please let me know if you need any further information to reproduce the issue.
The text was updated successfully, but these errors were encountered: