An open API service indexing awesome lists of open source software.

https://github.com/ericadamski/formiql

📝 A GraphQL like interface for form generation
https://github.com/ericadamski/formiql

Last synced: 3 months ago
JSON representation

📝 A GraphQL like interface for form generation

Awesome Lists containing this project

README

        

# formiql
📝 A GraphQL like interface for form generation

```javascript
import gql from 'graphql-tag';
import Formiql from 'formiql';

const typeDefs = [
gql`
{
type User {
id: ID!
name: String
birthday: Date # Formiql Custom Type
password: Password # Formiql Custom Type
username: String
}
}
`
];

const resolvers = { /* optional, defaults are Ant Design */
input: {
string,
int,
float,
/* Custom Formiql Types */
dollar,
decimal,
phone,
email,
date,
password,
},
textarea,
select,
option,
button: {
cancel,
submit,
radio
},
toggle,
}
};

class Main {
render() {
return (

console.log(data)}
type="User"
/>

)
}
}
```