getNodeById(args, pageDependencies) {
    const { id, type } = args || {}

    const node = getNodeById(id)

    let result
    if (!node) {
      result = null
    } else if (!type) {
      result = node
    } else {
      const nodeTypeNames = toNodeTypeNames(this.schema, type)
      result = nodeTypeNames.includes(node.internal.type) ? node : null
    }

    if (result) {
      this.trackInlineObjectsInRootNode(node)
    }

    return wrapNode(this.trackPageDependencies(result, pageDependencies))
  }
Get a node from the store by ID and optional type.

@param {Object} args
@param {string} args.id ID of the requested node
@param {(string|GraphQLOutputType)} [args.type] Optional type of the node
@param {PageDependencies} [pageDependencies]
@returns {(Node|null)}
@example
// Using only the id
getNodeById({ id: `123` })
// Using id and type
getNodeById({ id: `123`, type: `MyType` })
// Providing page dependencies
getNodeById({ id: `123` }, { path: `/` })