All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql-nodejs-express-server.api.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
{{>partial_header_graphql}}
# package {{packageName}}

# {{classname}}

{{#operations}}
{{#operation}}
{{#vendorExtensions.x-is-mutation}}{{#hasParams}}

input {{operationId}}Input {
    {{#allParams}}
    {{#description}}# {{description}}{{/description}}
    {{paramName}}: {{#isContainer}}[{{/isContainer}}{{dataType}}{{#isListContainer}}Input{{/isListContainer}}{{#isModel}}Input{{/isModel}}{{#isContainer}}]{{/isContainer}}{{#hasMore}}, {{/hasMore}}
    {{/allParams}}
}{{/hasParams}}{{/vendorExtensions.x-is-mutation}}{{/operation}}

type Mutation {
{{#operation}}
{{#vendorExtensions.x-is-mutation}}
  {{#summary}}
  # {{summary}}
  {{/summary}}
  {{#notes}}
  # {{notes}}
  {{/notes}}
  {{#allParams}}
  # @param {{dataType}} {{paramName}} {{description}}
  {{/allParams}}
  # @return [{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Boolean{{/returnType}}]
  {{operationId}}{{#hasParams}}(input: {{operationId}}Input!){{/hasParams}}: {{#returnType}}{{.}}{{/returnType}}{{^returnType}}Boolean{{/returnType}}
{{/vendorExtensions.x-is-mutation}}
{{/operation}}
}

{{/operations}}
{{#operations}}
type Query {
{{#operation}}
{{^vendorExtensions.x-is-mutation}}
  {{#summary}}
  # {{summary}}
  {{/summary}}
  {{#notes}}
  # {{notes}}
  {{/notes}}
  {{#allParams}}
  # @param {{dataType}} {{paramName}} {{description}}
  {{/allParams}}
  # @return [{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Boolean{{/returnType}}]
  {{operationId}}{{#hasParams}}({{#allParams}}{{paramName}}: {{dataType}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{/hasParams}}: {{#returnType}}{{.}}{{/returnType}}{{^returnType}}Boolean{{/returnType}}
{{/vendorExtensions.x-is-mutation}}
{{/operation}}
}

{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy