graphql-nodejs-express-server.model.mustache Maven / Gradle / Ivy
{{#models}}
{{#model}}
{{>partial_header_graphql}}
{{#description}}
# {{{.}}}
{{/description}}
type {{classname}} {
{{#vars}}
{{#description}}
# {{{.}}}
{{/description}}
{{baseName}}: {{#isArray}}[{{/isArray}}{{datatypeWithEnum}}{{#isArray}}!]{{/isArray}}
{{/vars}}
}
input {{classname}}Input {
{{#vars}}
{{#description}}
# {{{.}}}
{{/description}}
{{baseName}}: {{#isContainer}}[{{datatypeWithEnum}}{{#complexType}}Input{{/complexType}}]{{/isContainer}}{{^isContainer}}{{datatypeWithEnum}}{{#isModel}}Input{{/isModel}}{{/isContainer}}
{{/vars}}
}
{{#isEnum}}
{{#description}}
# {{{.}}}
{{/description}}
enum {{classname}}{{enumName}} {
{{#allowableValues}}
{{#values}}
{{{.}}}
{{/values}}
{{/allowableValues}}
}
{{/isEnum}}
{{/model}}
{{/models}}