All Release Notes
Updates to the GraphQL schema
28 August 2020
Enhancement
GraphQLCustomization
Custom objects can now be created, updated, and deleted using the GraphQL API.
- [GraphQL API] Added the following types to the GraphQL schema:
CustomObject,CustomObjectDraft,CustomObjectQueryResult. - [GraphQL API] Changed the
Querytype:- Added the
customObjectfield to theQuerytype. - Added the
customObjectsfield to theQuerytype.
- Added the
- [GraphQL API] Changed the
Mutationtype:- Added the
createOrUpdateCustomObjectfield to theMutationtype. - Added the
deleteCustomObjectfield to theMutationtype.
- Added the
Introduced the following changes to the GraphQL schema (in SDL format):
extend type Query {customObject("Queries with specified ID"id: String,"Queries with specified key"key: String, container: String): CustomObjectcustomObjects(where: String, sort: [String!], limit: Int, offset: Int, container: String!): CustomObjectQueryResult!}extend type Mutation {createOrUpdateCustomObject(draft: CustomObjectDraft!): CustomObjectdeleteCustomObject(version: Long,"Queries with specified ID"id: String,"Queries with specified key"key: String, container: String, personalDataErasure: Boolean = false): CustomObject}type CustomObject implements Versioned {container: String!key: String!value: Json!id: String!version: Long!createdAt: DateTime!lastModifiedAt: DateTime!createdBy: InitiatorlastModifiedBy: Initiator}input CustomObjectDraft {key: String!container: String!"The value should be passed in a form of escaped JSON"value: String!version: Long}type CustomObjectQueryResult {offset: Int!count: Int!total: Long!results: [CustomObject!]!}