specs / mongo / v0.1
mongo v0.1
MongoDB operation binders from the Mesh Mongo loader.
1Overview
MongoDB operation binders from the Mesh Mongo loader.
https://specs.graphql-mesh.dev/mongo/v0.1
ยท raw GraphQL
Stamp: meshSpecUrl('mongo') in packages/loaders/mongo.
extend schema
@link(
url: "https://specs.graphql-mesh.dev/mongo/v0.1"
import: ["@mongo__findOne", "@mongo__find", "@mongo__count", "@mongo__connection", "@mongo__pagination", "@mongo__aggregate", "@mongo__insertOne", "@mongo__insertMany", "@mongo__updateOne", "@mongo__updateMany", "@mongo__deleteOne", "@mongo__deleteMany"]
)
- Pair with @transport from core/v0.1.
2Directives
2.1@mongo__findOne
directive @mongo__findOne(
subgraph: String
collection: String!
query: String
sort: String
skip: String
selection: String
) repeatable on FIELD_DEFINITION | OBJECT2.1.1subgraph: String
2.1.2collection: String!
2.1.3query: String
2.1.4sort: String
2.1.5skip: String
2.1.6selection: String
2.2@mongo__find
directive @mongo__find(
subgraph: String
collection: String!
query: String
sort: String
limit: String
skip: String
selection: String
) repeatable on FIELD_DEFINITION2.2.1subgraph: String
2.2.2collection: String!
2.2.3query: String
2.2.4sort: String
2.2.5limit: String
2.2.6skip: String
2.2.7selection: String
2.3@mongo__count
directive @mongo__count(
subgraph: String
collection: String!
query: String
selection: String
) repeatable on FIELD_DEFINITION2.3.1subgraph: String
2.3.2collection: String!
2.3.3query: String
2.3.4selection: String
2.4@mongo__connection
directive @mongo__connection(
subgraph: String
collection: String!
query: String
sort: String
first: String
after: String
selection: String
) repeatable on FIELD_DEFINITION2.4.1subgraph: String
2.4.2collection: String!
2.4.3query: String
2.4.4sort: String
2.4.5first: String
2.4.6after: String
2.4.7selection: String
2.5@mongo__pagination
directive @mongo__pagination(
subgraph: String
collection: String!
query: String
sort: String
page: String
perPage: String
selection: String
) repeatable on FIELD_DEFINITION2.5.1subgraph: String
2.5.2collection: String!
2.5.3query: String
2.5.4sort: String
2.5.5page: String
2.5.6perPage: String
2.5.7selection: String
2.6@mongo__aggregate
directive @mongo__aggregate(
subgraph: String
collection: String!
query: String
pipeline: String
selection: String
) repeatable on FIELD_DEFINITION2.6.1subgraph: String
2.6.2collection: String!
2.6.3query: String
2.6.4pipeline: String
2.6.5selection: String
2.7@mongo__insertOne
directive @mongo__insertOne(
subgraph: String
collection: String!
set: String
selection: String
) repeatable on FIELD_DEFINITION2.7.1subgraph: String
2.7.2collection: String!
2.7.3set: String
2.7.4selection: String
2.8@mongo__insertMany
directive @mongo__insertMany(
subgraph: String
collection: String!
set: String
selection: String
graphqlDocumentInputs: Boolean
) repeatable on FIELD_DEFINITION2.8.1subgraph: String
2.8.2collection: String!
2.8.3set: String
2.8.4selection: String
2.8.5graphqlDocumentInputs: Boolean
2.9@mongo__updateOne
directive @mongo__updateOne(
subgraph: String
collection: String!
query: String
set: String
selection: String
) repeatable on FIELD_DEFINITION2.9.1subgraph: String
2.9.2collection: String!
2.9.3query: String
2.9.4set: String
2.9.5selection: String
2.10@mongo__updateMany
directive @mongo__updateMany(
subgraph: String
collection: String!
query: String
set: String
selection: String
) repeatable on FIELD_DEFINITION2.10.1subgraph: String
2.10.2collection: String!
2.10.3query: String
2.10.4set: String
2.10.5selection: String
2.11@mongo__deleteOne
directive @mongo__deleteOne(
subgraph: String
collection: String!
query: String
selection: String
) repeatable on FIELD_DEFINITION2.11.1subgraph: String
2.11.2collection: String!
2.11.3query: String
2.11.4selection: String
2.12@mongo__deleteMany
directive @mongo__deleteMany(
subgraph: String
collection: String!
query: String
selection: String
) repeatable on FIELD_DEFINITION