OBJECT
Mutation
link GraphQL Schema definition
- type Mutation {
- # Adds a document which will be assigned to an existing or new docSet on the basis
- # of the specified selectors
- #
- # Arguments
- # selectors: The selectors for this document, the keys of which
- # must match those of the Proskomma instance
- # contentType: The format of the content (probably usfm or usx)
- # content: The document content as a string
- # tags: A list of tags to be added
- (
- InputKeyValue!]!, : [
- String!, :
- String!, :
- String!] : [
- ): Boolean!
- # Creates a new, empty sequence
- #
- # Arguments
- # documentId: The id of the document to which the sequence will
- # be added
- # type: The type of the new sequence (main, heading...)
- # blocksSpec: The JSON describing blocks, if any, for the new
- # sequence
- # graftToMain: If true, graft to the first block of the main
- # sequence
- # tags: 'A list of tags to be added
- (
- String!, :
- String!, :
- inputBlockSpec!], : [
- Boolean, :
- String!] : [
- ): String!
- # Adds a new block to a sequence
- #
- # Arguments
- # documentId: The id of the document containing the sequence to
- # which the block will be added
- # sequenceId: The id of the sequence to which the block will be
- # added
- # blockN: The zero-indexed position at which to add the block
- # blockScope: The scope to be applied to the block, eg
- # blockScope/p
- (
- String!, :
- String!, :
- Int!, :
- String! :
- ): Boolean!
- # Deletes a docSet
- #
- # Arguments
- # docSetId: The id of the docSet containing the document to be
- # deleted
- String!): Boolean ( :
- # Deletes a document
- #
- # Arguments
- # docSetId: The id of the docSet containing the document to be
- # deleted
- # documentId: The id of the document to be deleted
- String!, : String!): Boolean ( :
- # Deletes a sequence from a document
- #
- # Arguments
- # documentId: The id of the document containing the sequence to
- # be deleted
- # sequenceId: The id of the sequence to be deleted
- String!, : String!): Boolean ( :
- # Deletes a block from a sequence
- #
- # Arguments
- # documentId: The id of the document containing the sequence from
- # which the block will be deleted
- # sequenceId: The id of the sequence from which the block will be
- # deleted
- # blockN: The zero-indexed number of the block to be deleted
- String!, : String!, : Int!): Boolean ( :
- # Explicitly rebuild the text lookup tables for a docSet. (You probably don't need
- # to do this)
- #
- # Arguments
- # docSetId: The id of the docSet
- String!): Boolean! ( :
- # Add one or more tags to a docSet, if they are not already present
- #
- # Arguments
- # docSetId: The id of the docSet to which the tags will be added
- # tags: A list of tags to be added
- String!, : [String]!): [String!]! ( :
- # Add one or more tags to a document, if they are not already present
- #
- # Arguments
- # docSetId: The id of the docSet containing the document to which
- # the tags will be added
- # documentId: The id of the document to which the tags will be
- # added
- # tags: A list of tags to be added
- (
- String!, :
- String!, :
- String]! : [
- ): [String!]
- # Add one or more tags to a sequence, if they are not already present
- #
- # Arguments
- # docSetId: The id of the docSet containing the document
- # containing the sequence to which the tags will be added
- # documentId: The id of the document containing the sequence to
- # which the tags will be added
- # sequenceId: The id of the sequence to which the tags will be
- # added
- # tags: A list of tags to be added
- (
- String!, :
- String!, :
- String!, :
- String]! : [
- ): [String!]
- # Remove one or more tags from a docSet, if they are present
- #
- # Arguments
- # docSetId: The id of the docSet from which the tags will be
- # removed
- # tags: A list of tags to be removed
- String!, : [String]!): [String!] ( :
- # Remove one or more tags from a document, if they are present
- #
- # Arguments
- # docSetId: The id of the docSet containing the document from
- # which the tags will be removed
- # documentId: The id of the document from which the tags will be
- # removed
- # tags: A list of tags to be removed
- (
- String!, :
- String!, :
- String]! : [
- ): [String!]
- # Remove one or more tags from a sequence, if they are present
- #
- # Arguments
- # docSetId: The id of the docSet containing the document
- # containing the sequence from which the tags will be removed
- # documentId: The id of the document containing the sequence from
- # which the tags will be removed
- # sequenceId: The id of the sequence from which the tags will be
- # removed
- # tags: A list of tags to be removed
- (
- String!, :
- String!, :
- String!, :
- String]! : [
- ): [String!]
- # Replaces the items of a block with a new set of items
- #
- # Arguments
- # docSetId: The id of the docSet containing the document
- # containing the sequence containing the block for which the items will be updated
- # documentId: The id of the document containing the sequence
- # containing the block for which the items will be updated
- # sequenceId: The id of the sequence containing the block for
- # which the items will be updated (defaults to the main sequence)
- # blockPosition: The zero-indexed number of the block for which
- # the items will be updated
- # items: The new content for the block as item objects
- # blockGrafts: BlockGrafts for the block as item objects
- # blockScope: Optional blockScope for the block as an item object
- (
- String!, :
- String!, :
- String, :
- Int!, :
- InputItemObject!], : [
- InputItemObject!], : [
- InputItemObject :
- ): Boolean!
- # Replaces all the blocks of a sequence with a new set of blocks
- #
- # Arguments
- # docSetId: The id of the docSet containing the document
- # containing the sequence for which the blocks will be updated
- # documentId: The id of the document containing the sequence for
- # which the blocks will be updated
- # sequenceId: The id of the sequence for which the blocks will be
- # updated (defaults to the main sequence)
- # blocksSpec: The JSON describing blocks
- (
- String!, :
- String!, :
- String, :
- inputBlockSpec!]! : [
- ): Boolean!
- # Garbage collects unused sequences within a document. (You probably don\'t need
- # to do this.)
- #
- # Arguments
- # docSetId: The id of the docSet containing the document to be
- # garbage collected
- # documentId: The id of the document to be garbage collected
- String!, : String!): Boolean! ( :
- # Adds verse mapping tables to the documents in a docSet, where the verse mapping
- # may be provided in legacy .vrs or JSON format
- #
- # Arguments
- # docSetId: the id of the docSet to which the verse mapping will
- # be added
- # vrsSource: The verse mapping, in legacy .vrs format (as a
- # string)
- # jsonSource: The verse mapping, in JSON format (as a string)
- (
- String!, :
- String, :
- String :
- ): Boolean!
- # Removes verse mapping tables from the documents in a docSet
- #
- # Arguments
- # docSetId: The id of the docSet from which verse mapping will be
- # removed
- String!): Boolean! ( :
- }
link Require by
This element is not required by anyone