Skip to content

Instantly share code, notes, and snippets.

@bogdanned
Last active Apr 10, 2020
Embed
What would you like to do?
// Simplified structure of the type map
let typeMap = {
rootType: {
fields: { // array with the fields of the root ype
user: {
type: {
fields: {
lastname: {...},
settings: {...},
}
},
resolve: () => ({}) // point to a resolve function for the type name
},
settings: {
type: {
fields: {
membership: {...},
}
},
resolve: () => ({}) // point to a resolve function for the type name
}
}
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment