Comments (3)
The error tells you what’s wrong: your queries are invalid. Use the GraphiQL interface to learn what fields are available/required. Please follow the issue template in future.
from starter.
In my test test ,i passed the id but it shows Field "UpdateDmsPhysicalRwTblServiceAdvisorInput.nodeId" of required type "ID!" was not provided
("allDmsPhysicalRoVwStoreMasters", async () => {
//const data = GetDashboardItemsData;
await RunGraphQLQuery(
// GraphQL query goes here:
mutation updatePayTypeMaster( $id: Int! $pay_type: String $pay_type_code: String $department: String $store_id: String ) { updateDmsPhysicalRwPayTypeMaster( input: { patch: { payType: $pay_type payTypeCode: $pay_type_code department: $department storeId: $store_id } id: $id } ) { dmsPhysicalRwPayTypeMaster { id } } }
,
// GraphQL variables:
{
id: 34,
Pay_type: 'test',
pay_type_code: 'CH',
department: 'REPAIR',
store_id: '34567'
},
// Additional props to add to `req` (e.g. `user: {session_id: '...'}`)
{},
// This function runs all your test assertions:
async (json) => {
expect(json.errors).toBeFalsy();
expect(json.data).toBeTruthy();
expect(json.data.allDmsPhysicalRoVwStoreMasters.totalCount).toBe(2);
// expect(json.data.currentUser).toMatchObject({
// id: user.id,
// });
}
);
});
@benjie
from starter.
The operation is not valid, because the field UpdateDmsPhysicalRwTblServiceAdvisorInput.nodeId
(which was expecting an ID!
) was not provided. You've passed id: $id
whereas the mutation is expecting nodeId: ...
; if you copy it into GraphiQL as I've instructed then it will show you where the error is. You're using the wrong mutation; you want something like updateDmsPhysicalRwPayTypeMasterById
- have a look in GraphiQL to determine which mutation you need for the inputs you have available.
from starter.
Related Issues (20)
- Dependency requires Node 14 but Dockerfile defaults to Node 12 HOT 1
- Not able to send verification emails in development HOT 9
- Heroku Demo App Reset Password flow is broken HOT 2
- Switch from @app to @localrepo
- Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output HOT 2
- Error when using patch in mutation.
- Filter error in testing query HOT 2
- Module not found in docker- docker run [image] test HOT 1
- Error when trying to add postgraphile-plugin-connection-filter to graphile-starter 4.0 HOT 3
- scripts/start.js yarn silent flag not accepted by Yarn berry v3 HOT 1
- Failure to Invalidate session after password change HOT 1
- can't launch database with docker-compose v2 HOT 1
- Setting up Separate endpoint for APIs with Socket HOT 6
- username sanitization is case sensitive; column is citext
- How can we manage session in the postgraphile app? HOT 1
- TFA & RBAC HOT 1
- currently no loaders are configured to process this file HOT 2
- Login/registration vulnerable to malicious redirect to third-party sites HOT 3
- Two of the e2e subscription tests fail if they are running against the dev environment.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter.