platformOS Community

Is it possible to get the GUI admin to show module models?

Ben-Probity Feb 12 2021 at 00:17

Using pos-cli gui serve environment -o in the terminal and loading up the admin I notice it is only pulling the model_schemas from the app folder and its not including any of the model_schemas from the modules folders. Is there a way to get them all to show without having all of the module model_schemas in the app folder?

  • Adam Feb 12 2021 at 00:21
    This is a great question for @pawel!
Pawel Feb 12 2021 at 11:46

Not yet. Meanwhile you can do it in GraphiQL IDE ( http://localhost:3333/gui/graphql ) the standard way.

query Schemas {
  admin_model_schemas(per_page: 10) {
    results {
      name
    }
  }
}

query Records {
  records(
    filter: {
    	table: { value: "modules/direct_s3_upload/uppy" }
    },
    per_page: 10) {
    results {
      id
    }
  }
}
Please sign in or fill up your profile to answer a question