This is a work in progress. Definitely don't use it yet.
$ composer install
$ docker-compose up
Activate the wp-graphql plugin and this one at the same time
For now, add types, fields, and connections to their appropriate files in /lib/data
. Make sure to require
those files in ucomm-wpgraphql-boilerplate.php
. I may change this to some kind of autoloader in the future.
As it stands right now, these are the two queries you can perform
{
myField {
age
name
mySubConnection {
nodes {
experience
job
}
}
}
}
{
myConnections {
nodes {
age
name
mySubConnection {
nodes {
experience
job
}
}
}
}
}
- create an autoloader to require files. possibly as part of the
XRegister
classes - maybe create a
Register
interface or parent class. depends on how I structure the rest of the API - look for ways to optimize the data files and how they interact with the registers. probably this will require recursion
- see if I can make some of the class methods
protected
orprivate
- add a way to give an example of a mutation