federation transform allows to add the resolvers and directives to conform to the federation specification. Much of the federation sourcecode could be reused ensuring it is compliant to the specification. This transform uses
Add the following configuration to your Mesh config file:
If you want to add more complex business logic, you can point to a code file that exports a resolver function.
You can check out our example that uses Federation as a merging strategy.
Array of Object, required):
Object):you need to define which argument should receive the key* `keyFields` (type: `Array of String`, required)* `extend` (type: `Boolean`)* `fields` (type: `Array of Object`, required):* `name` (type: `String`, required)* `config` (type: `Object`, required):* `external` (type: `Boolean`)* `provides` (type: `String`)* `requires` (type: `String`)* `resolveReference` - One of:* `String`* `object`:* `queryFieldName` (type: `String`, required) - Name of root field name that resolves the reference* `keyArg` (type: `String`) - If the root field name has multiple args,