Skip to content

Commit

Permalink
Document location argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Bojan Serafimov committed Feb 4, 2019
1 parent 3dce8ff commit adac815
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions graphql_compiler/compiler/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def _represent_argument(directive_location, context, argument, inferred_type):
"""Return a two-element tuple that represents the argument to the directive being processed.
Args:
directive_location: Location where this directive is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
argument: string, the name of the argument to the directive
Expand Down Expand Up @@ -174,6 +175,7 @@ def _process_comparison_filter_directive(filter_operation_info, location,
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, containing the value to perform the comparison against;
Expand Down Expand Up @@ -220,6 +222,7 @@ def _process_has_edge_degree_filter_directive(filter_operation_info, location, c
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, containing the value to check the edge degree against;
Expand Down Expand Up @@ -294,6 +297,7 @@ def _process_name_or_alias_filter_directive(filter_operation_info, location, con
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, containing the value to check the name or alias against;
Expand Down Expand Up @@ -360,6 +364,7 @@ def _process_between_filter_directive(filter_operation_info, location, context,
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 2 elements, specifying the time range in which the data must lie;
Expand Down Expand Up @@ -405,6 +410,7 @@ def _process_in_collection_filter_directive(filter_operation_info, location, con
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, specifying the collection in which the value must exist;
Expand Down Expand Up @@ -439,6 +445,7 @@ def _process_has_substring_filter_directive(filter_operation_info, location, con
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, specifying the collection in which the value must exist;
Expand Down Expand Up @@ -476,6 +483,7 @@ def _process_contains_filter_directive(filter_operation_info, location, context,
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, specifying the collection in which the value must exist;
Expand Down Expand Up @@ -514,6 +522,7 @@ def _process_intersects_filter_directive(filter_operation_info, location, contex
Args:
filter_operation_info: FilterOperationInfo object, containing the directive and field info
of the field where the filter is to be applied.
location: Location where this filter is used.
context: dict, various per-compilation data (e.g. declared tags, whether the current block
is optional, etc.). May be mutated in-place in this function!
parameters: list of 1 element, specifying the collection in which the value must exist;
Expand Down

0 comments on commit adac815

Please sign in to comment.