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