I get a javascript error when trying to access fieldObjects in the schema - I THINK this used to work (but I haven’t tested it in a long time). Something related has definitely changed which broke some of my scripts.
const dbg = console.log
const fibery = context.getService('fibery')
const schema = await fibery.getSchema()
dbg(`schemaFieldObjects:`)
for (const typeObj of schema.typeObjects) {
dbg('TypeObject: ', typeObj.title)
const fieldObjs = typeObj.fieldObjects
for (const fo of fieldObjs) {
dbg(` Field: `, fo.title)
dbg(JSON.stringify(fo, null, 2)) // <-- 'getOwnPropertyDescriptor' on proxy: trap returned descriptor for property 'typeObject' that is incompatible with the existing property in the proxy target
}
}
