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
Query
type:- Added the
customObject
field to theQuery
type. - Added the
customObjects
field to theQuery
type.
- Added the
- [GraphQL API] Changed the
Mutation
type:- Added the
createOrUpdateCustomObject
field to theMutation
type. - Added the
deleteCustomObject
field to theMutation
type.
- 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!]!}