Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toriphes/wp-graphql-ninja-forms
Adds Ninja Forms Functionality to WPGraphQL schema
https://github.com/toriphes/wp-graphql-ninja-forms
ninjaforms wordpress wpgraphql wpgraphql-plugin
Last synced: 22 days ago
JSON representation
Adds Ninja Forms Functionality to WPGraphQL schema
- Host: GitHub
- URL: https://github.com/toriphes/wp-graphql-ninja-forms
- Owner: toriphes
- License: gpl-3.0
- Created: 2020-12-11T21:35:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T13:26:20.000Z (over 3 years ago)
- Last Synced: 2024-11-01T20:36:22.546Z (2 months ago)
- Topics: ninjaforms, wordpress, wpgraphql, wpgraphql-plugin
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wordpress-gatsby - WPGraphQL for Ninja Forms - This free plugin exposes forms created by the Ninja Forms plugin to the WPGraphQL Schema and allows for the forms to be submitted via GraphQL Mutations. (Plugins / WordPress)
README
# WPGraphQL Ninja Forms
A WordPress plugin that Adds Ninja Forms functionality to WPGraphQL schema.
**WARNING:** this plugin is under development and it's not production ready!
## Installation
2. Install and activate [WPGraphQL](https://www.wpgraphql.com/) wordpress plugin
2. Install and activate [Ninja Forms](https://wordpress.org/plugins/ninja-forms/) wordpress plugin
1. Clone or download the zip of this repository into your WordPress plugin directory and activate **WPGraphQL Ninja Forms**## Features
* Query **forms** with their related fields
* Submit one or multiple form entries using mutations## Get a form and its fields
```graphql
{
form(id: "1", idType: DATABASE_ID) {
title,
fields {
nodes {
fieldId
label
type
}
}
}
}
```## Submit a form entry
```graphql
{
submitForm(input: {formId: 1, data: [
{id: 1, value: "Julius"},
{id: 2, value: "[email protected]"},
{id: 3, value: "Hello there"}
]}) {
errors {
fieldId
message
slug
}
message
success
}
}
```