getNodesByIds(args, pageDependencies) {
    const { ids, type } = args || {}

    const nodes = Array.isArray(ids)
      ? ids.map(id => getNodeById(id)).filter(Boolean)
      : []

    let result
    if (!nodes.length || !type) {
      result = nodes
    } else {
      const nodeTypeNames = toNodeTypeNames(this.schema, type)
      result = nodes.filter(node => nodeTypeNames.includes(node.internal.type))
    }

    if (result) {
      result.forEach(node => this.trackInlineObjectsInRootNode(node))
    }

    return wrapNodes(this.trackPageDependencies(result, pageDependencies))
  }
Get nodes from the store by IDs and optional type.

@param {Object} args
@param {string[]} args.ids IDs of the requested nodes
@param {(string|GraphQLOutputType)} [args.type] Optional type of the nodes
@param {PageDependencies} [pageDependencies]
@returns {Node[]}
@example
// Using only the id
getNodesByIds({ ids: [`123`, `456`] })

// Using id and type
getNodesByIds({ ids: [`123`, `456`], type: `MyType` })

// Providing page dependencies
getNodesByIds({ ids: [`123`, `456`] }, { path: `/` })