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

Function deleteObject

spec/ParseGraphQLServer.spec.js:6959–6980  ·  view source on GitHub ↗
(className, id, headers)

Source from the content-addressed store, hash-verified

6957 await parseGraphQLServer.parseGraphQLSchema.schemaCache.clear();
6958
6959 function deleteObject(className, id, headers) {
6960 const mutationName = className.charAt(0).toLowerCase() + className.slice(1);
6961 return apolloClient.mutate({
6962 mutation: gql`
6963 mutation DeleteSomeObject(
6964 $id: ID!
6965 ) {
6966 delete: delete${className}(input: { id: $id }) {
6967 ${mutationName} {
6968 objectId
6969 }
6970 }
6971 }
6972 `,
6973 variables: {
6974 id,
6975 },
6976 context: {
6977 headers,
6978 },
6979 });
6980 }
6981
6982 await Promise.all(
6983 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…