Tag: sequelize.js
-
graphql single mutation with two authorizations
0 i have this mutation that updates tasks, but i don’t want to allow admins to modify the assigned_to field i want this to be only modifi-able by the super-admin, here’s how the code looks currently and just to for clarification i haven’t implmented any authorization or shield codeing yet, it’s my first encounter with…
-
make graphql mutation return multiple types
0 i’m working on creating mutations for a project i’m working on but stuck on the resolver returns, i won’t to handle the errors while i’m at it as well by sending back messages for notifications to make it user friendly, but let’s say my mutation is UPDATE_USER and it should also return the updated…
-
GraphQL: TypeError: Cannot read property of undefined
2 I have an Apollo GraphQL projects where I have created my own Query and Mutations. I have done using mock data and Query and Mutation works fine. But when I am trying to do with Sequelize ORM, I am getting the error "TypeError: Cannot read property ‘getListings’ of undefined", " at listings (/home/ayman/Desktop/apollo-graphql/graphql-app/functions/graphql.js:50:19)", "…