GraphQL schema bridge for the uniforms React form library. Current version 4.0.0-alpha.5. This bridge converts GraphQL schemas (using graphql-tag or introspection) into uniforms fields, enabling auto-generated forms from GraphQL types. It supports validation via GraphQL schema constraints and is designed for use with uniforms v4. The package is actively maintained as part of the vazco/uniforms monorepo. Key differentiator: allows building forms directly from GraphQL schemas without manual field definitions.
npm install uniforms-bridge-graphqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a GraphQL bridge from introspection data and render a form using AutoForm.
Use 'new GraphQLBridge(schema, options)' instead of calling GraphQLBridge(schema, options) directly.
Replace 'schemaType' with 'rootType' in options.
Use 'buildClientSchema(introspectionResult)' to convert introspection data to a GraphQLSchema object.
Ensure your GraphQL schema uses only supported scalar types for form fields.
Run 'npm install uniforms-bridge-graphql' and ensure your package.json includes it.
Use 'import { GraphQLBridge } from 'uniforms-bridge-graphql'' and instantiate with 'new GraphQLBridge(...)'.Ensure you pass a valid GraphQLSchema object and include 'rootType: 'Mutation'' or 'rootType: 'Query'' in options.