We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fabrix can support fragment for directive configuration reusability.
The configuration given to fragments with fabrix directives are inherited into the query, so configurations can be reusable through fragments.
fragment IDNameParts on Todo @fabrix(input: [ { field: "id", config: { hidden: true } } ]) { id name } query todos { allTodos { collection { ...IDNameParts status } } }
If field configurations are duplicated between fragments and queries, those are merged into one with queries prioritized.
Ideally, users can register their own component associated to a fragment.
Component registry is the place that supports those association.
componentRegistry.addFragment( query: gql` fragmment moKanbanView on ManufacturingOrder { collection { quantity status name description } } `, component: ({ values }) => { /* * { * collection: { * quantity: number * name: string * } * } */ return ( <Kanban groupBy="status" title="name" body={(value) => ( <KanbanDescription> {value.description} </KanbanDescription> )} values={values} /> ) } ) const Page = () => { return ( <FabrixComponent contentClassName="grid gap-1" query={gql` query { manufacturingOrders { ...moKanbanView } } `} /> ) }
The text was updated successfully, but these errors were encountered:
IzumiSy
No branches or pull requests
Fabrix can support fragment for directive configuration reusability.
The configuration given to fragments with fabrix directives are inherited into the query, so configurations can be reusable through fragments.
If field configurations are duplicated between fragments and queries, those are merged into one with queries prioritized.
Fragment registration
Ideally, users can register their own component associated to a fragment.
Component registry is the place that supports those association.
The text was updated successfully, but these errors were encountered: