{"size": 905, "ext": "js", "max_stars_repo_path": "gatsby-node.js", "max_stars_repo_name": "mj-chen/property", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gatsby-node.js", "max_issues_repo_name": "mj-chen/property", "max_issues_repo_issues_event_min_datetime": "2021-03-09T11:29:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T05:09:19.000Z", "max_forks_repo_path": "gatsby-node.js", "max_forks_repo_name": "mj-chen/property", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 27.4242424242, "max_line_length": 57, "alphanum_fraction": 0.3767955801}
/**
 * Implement Gatsby's Node APIs in this file.
 *
 * See: https://www.gatsbyjs.org/docs/node-apis/
 */

// You can delete this file if you're not using it

exports.createResolvers = ({createResolvers}) => {
    const resolvers = {
        GCMS_Property:{

            mo_products:{
                type:['MoltinProduct'],
                resolve:(source, args, context, info) =>{
                    return 
                    context.nodeModel.runQuery({
                        query:{
                            filter:{
                                sku:{
                                    in: source.houseLink
                                }
                            }
                        },
                        type:"MoltinProduct",
                        firstOnly:false,
                    })
                }
            }
        }
    }
    createResolvers(resolvers)
}