This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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