(className, id, fields, headers)
| 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 => { |
no outgoing calls
no test coverage detected
searching dependent graphs…