AndreasFaust / gatsby-source-custom-api

Source data from any API and transform it to (File-)Nodes.
52 stars 25 forks source link

Option to add type definition that are not Node type in schema. #45

Closed MuhammadHadiofficial closed 2 years ago

MuhammadHadiofficial commented 2 years ago

Currently in schema whatever fields we define they get converted into node type. In gatsby you can define type definitions type ABC implements NODE but to define simple objects you can do it this way type XYZ is it possible in the plug in or it should be done manually. That's how nested objects are handled in gatsby link and can be done in this plugin too.

Just like imageKeys if we can differentiate which schema objects would be Nodes and which would be simple nested objects that would be great for type definition