@ldsg/forms
v0.3.25
Published
The FormsResource provides GraphQL query fields for discovering and retrieving form definitions.
Readme
LDSG Forms Resource
The FormsResource provides GraphQL query fields for discovering and retrieving form definitions.
Features
form(name: "...")- Query a single form by name- Returns form metadata (name, title, description) with input and output objects
- Example:
form(name: "ContactForm") { name, title, description, inputObject, outputObject }
forms- Query all forms- Returns a list of all forms with metadata (name, title, description)
- Example:
forms { name, title, description }
Usage
# Query a single form by name
query {
form(name: "ContactForm") {
name
title
description
inputObject {
name
title
description
fieldInfoList
jsonSchema
formilyJsonSchema
}
outputObject {
name
title
description
fieldInfoList
jsonSchema
formilyJsonSchema
}
}
}
# Query all forms
query {
forms {
name
title
description
}
}TODO
- [ ] add e2e, request to express app
