the way createNode work in gatsby-node.js
              
              #38342
            
            
          Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to make my own library that automatically register custom type for graphql. I decompose code in
src/schemaandsrc/datastorein gatsby package. I looked up how to create each resolver and field in thecreateNode, but I couldn't find the code related toedges,groups, andnodesfields. Code related to filter, limit, skip, and distinct was found in addTypeToRootQuery, and distinct, group, max, min, and sum were found in the resolver.ts file. If possible, can you explain how it works for the 3 things you haven't found?Beta Was this translation helpful? Give feedback.
All reactions