MCPcopy Create free account
hub / github.com/parse-community/parse-server / updateObject

Function updateObject

spec/ParseGraphQLServer.spec.js:6507–6531  ·  view source on GitHub ↗
(className, id, fields, headers)

Source from the content-addressed store, hash-verified

6505 await parseGraphQLServer.parseGraphQLSchema.schemaCache.clear();
6506
6507 async function updateObject(className, id, fields, headers) {
6508 return await apolloClient.mutate({
6509 mutation: gql`
6510 mutation UpdateSomeObject(
6511 $id: ID!
6512 $fields: Update${className}FieldsInput
6513 ) {
6514 update: update${className}(input: {
6515 id: $id
6516 fields: $fields
6517 clientMutationId: "someid"
6518 }) {
6519 clientMutationId
6520 }
6521 }
6522 `,
6523 variables: {
6524 id,
6525 fields,
6526 },
6527 context: {
6528 headers,
6529 },
6530 });
6531 }
6532
6533 await Promise.all(
6534 objects.slice(0, 3).map(async obj => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…