async function createGraphQLNode(
  ent,
  type,
  createNode,
  store,
  cache,
  createContentDigest
) {
  const id = !ent.id ? (!ent.ID ? 0 : ent.ID) : ent.id
  let node = {
    id: `${type}_${id.toString()}`,
    children: [],
    parent: null,
    internal: {
      type: type,
    },
  }
  node = recursiveAddFields(ent, node)
  node.internal.content = JSON.stringify(node)
  node.internal.contentDigest = createContentDigest(node)
  createNode(node)
}
Create the Graph QL Node

@param {any} ent
@param {any} type
@param {any} createNode