|
@@ -78,14 +78,12 @@ export default async function createModels2(gql, config={create: 'Upsert', updat
|
|
|
`
|
|
|
|
|
|
const universe = await gql.request(universeQuery)
|
|
|
- console.log(universe)
|
|
|
const types = []
|
|
|
const inputs = []
|
|
|
for (let type of universe.__schema.types){
|
|
|
if (!["Query", "Mutation"].includes(type.name) && type.kind === "OBJECT" && !type.name.startsWith('__')) types.push(type)
|
|
|
if (!["Query", "Mutation"].includes(type.name) && type.kind === "INPUT_OBJECT" && !type.name.startsWith('__')) inputs.push(type)
|
|
|
}
|
|
|
- console.log(types, inputs)
|
|
|
|
|
|
let classes = {}
|
|
|
|