field: { type: String, optional: true, canRead: ["admins"], resolveAs: { fieldName: "resolvedField", type: "Bar", resolver: async (root, args, context) => { return Variable value is ${args?.variable}; }, arguments: "variable: String", description: "Some field", typeName: "String", addOriginalField: true, }, }
Variable value is ${args?.variable}
Combination of field selectors, conditions and operators { _and: [{size:2}, {name: "hello"}], bar: 3}
Generated using TypeDoc
field: { type: String, optional: true, canRead: ["admins"], resolveAs: { fieldName: "resolvedField", type: "Bar", resolver: async (root, args, context) => { return
Variable value is ${args?.variable}
; }, arguments: "variable: String", description: "Some field", typeName: "String", addOriginalField: true, }, }