@valueflows/vf-graphql
Version:
Reference GraphQL implementation of the ValueFlows spec
52 lines (42 loc) • 1.26 kB
JavaScript
// Generated by scripts/build.js - edit the *.gql file instead!
module.exports = `
##
#
# Query filter parameters for Agent <> Planning relationships
#
# :TODO: decide on final set
# @see https://lab.allmende.io/valueflows/vf-schemas/vf-graphql/-/issues/90
# @package vf-graphql
# @author pospi <pospi@spadgos.com>
# @since 2021-12-13
#
##
"Query parameters for reading \`Commitment\`s related to an \`Agent\`"
input AgentCommitmentFilterParams {
searchString: String
action: ID
startDate: DateTime
endDate: DateTime
finished: Boolean
}
"Query parameters for reading \`Intent\`s related to an \`Agent\`"
input AgentIntentFilterParams {
searchString: String
action: ID
startDate: DateTime
endDate: DateTime
finished: Boolean
}
interface Agent {
commitments(filter: AgentCommitmentFilterParams): CommitmentConnection
intents(filter: AgentIntentFilterParams): IntentConnection
}
type Person implements Agent {
commitments(filter: AgentCommitmentFilterParams): CommitmentConnection
intents(filter: AgentIntentFilterParams): IntentConnection
}
type Organization implements Agent {
commitments(filter: AgentCommitmentFilterParams): CommitmentConnection
intents(filter: AgentIntentFilterParams): IntentConnection
}
`