From 75da1346c41231a9847deeaa2f709806d9f74d84 Mon Sep 17 00:00:00 2001 From: Brad Baker Date: Wed, 10 Oct 2018 18:19:20 +1100 Subject: [PATCH] rename of Execution Info --- .gitignore | 4 +++- content/documentation/master/data-fetching.md | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 909d336c..8a8d2df6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ public -.DS_STORE \ No newline at end of file +.DS_STORE +*.iml +.idea diff --git a/content/documentation/master/data-fetching.md b/content/documentation/master/data-fetching.md index 4e5ec5ed..22810b26 100644 --- a/content/documentation/master/data-fetching.md +++ b/content/documentation/master/data-fetching.md @@ -177,7 +177,7 @@ system designer is how you will use context in your fetchers if at all. Some pe data fetchers automatically and hence don't need to use this. -* ``ExecutionTypeInfo getFieldTypeInfo()`` - the field type information is a catch all bucket of field type information that is built up as +* ``ExecutionInfo getExecutionInfo()`` - the execution information is a catch all bucket of field execution information that is built up as the query is executed. The following section explains more on this. * ``DataFetchingFieldSelectionSet getSelectionSet()`` - the selection set represents the child fields that have been "selected" under neath the @@ -189,12 +189,12 @@ query. -## The interesting parts of ExecutionTypeInfo +## The interesting parts of ExecutionInfo -The execution of a graphql query creates a call tree of fields and their types. ``graphql.execution.ExecutionTypeInfo.getParentTypeInfo`` +The execution of a graphql query creates a call tree of fields and their types. ``graphql.execution.ExecutionInfo.getParent`` allows you to navigate upwards and see what types and fields led to the current field execution. -Since this forms a tree path during execution, the ``graphql.execution.ExecutionTypeInfo.getPath`` method returns the representation of that +Since this forms a tree path during execution, the ``graphql.execution.ExecutionInfo.getPath`` method returns the representation of that path. This can be useful for logging and debugging queries. There are also helper methods there to help you get the underlying type name of non null and list wrapped types.