Move Identity, Organization, Viewer, PageInfo, OrderDirection, CountryCode, OIDCProviderInfo, File, and ReauthenticationReason out of base.graphql into their own dedicated files across all three APIs. base.graphql now only contains directives, scalars, Node interface, Query type, and an empty Mutation type (required by Relay schemaExtensions). Entity files use extend type Mutation for their mutations. Signed-off-by: Émile Ré <emile@getprobo.com>
26 lines
662 B
GraphQL
26 lines
662 B
GraphQL
type Viewer {
|
|
id: ID!
|
|
|
|
signableDocuments(
|
|
organizationId: ID!
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentOrder
|
|
): EmployeeDocumentConnection! @goField(forceResolver: true)
|
|
|
|
signableDocument(id: ID!): EmployeeDocument @goField(forceResolver: true)
|
|
|
|
approvableDocuments(
|
|
organizationId: ID!
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentOrder
|
|
): EmployeeDocumentConnection! @goField(forceResolver: true)
|
|
|
|
approvableDocument(id: ID!): EmployeeDocument @goField(forceResolver: true)
|
|
}
|