lighthouse-graphql 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +152 -1
- data/docs/authorization.md +5 -1
- data/docs/configuration.md +71 -3
- data/docs/custom-directives.md +22 -0
- data/docs/defer.md +352 -0
- data/docs/directives.md +102 -0
- data/docs/events.md +30 -1
- data/docs/filtering-and-ordering.md +488 -0
- data/docs/getting-started.md +1 -1
- data/docs/performance.md +9 -0
- data/docs/resolvers.md +14 -2
- data/docs/testing.md +99 -0
- data/lib/lighthouse/complexity.rb +4 -2
- data/lib/lighthouse/config.rb +28 -11
- data/lib/lighthouse/contracts/field_resolver.rb +32 -0
- data/lib/lighthouse/contracts/search_builder.rb +16 -0
- data/lib/lighthouse/controller.rb +94 -18
- data/lib/lighthouse/defer.rb +114 -0
- data/lib/lighthouse/directive_resolvers/aggregate_resolver.rb +1 -0
- data/lib/lighthouse/directive_resolvers/all_resolver.rb +30 -1
- data/lib/lighthouse/directive_resolvers/argument_binding.rb +1 -3
- data/lib/lighthouse/directive_resolvers/association_resolvers.rb +1 -0
- data/lib/lighthouse/directive_resolvers/base.rb +99 -49
- data/lib/lighthouse/directive_resolvers/builder_applier.rb +24 -18
- data/lib/lighthouse/directive_resolvers/can_resolvers.rb +28 -2
- data/lib/lighthouse/directive_resolvers/count_resolver.rb +1 -0
- data/lib/lighthouse/directive_resolvers/field_resolver.rb +4 -0
- data/lib/lighthouse/directive_resolvers/find_resolver.rb +31 -16
- data/lib/lighthouse/directive_resolvers/first_resolver.rb +6 -3
- data/lib/lighthouse/directive_resolvers/global_id_types.rb +1 -2
- data/lib/lighthouse/directive_resolvers/model_mutation_resolver.rb +2 -0
- data/lib/lighthouse/directive_resolvers/paginate_resolver.rb +27 -4
- data/lib/lighthouse/directive_resolvers/throttle_resolver.rb +17 -6
- data/lib/lighthouse/directives/arguments/base.rb +14 -0
- data/lib/lighthouse/directives/arguments/filters.rb +6 -0
- data/lib/lighthouse/directives/arguments/more_filters.rb +3 -0
- data/lib/lighthouse/directives/arguments/search.rb +34 -0
- data/lib/lighthouse/directives/arguments/soft_deletes.rb +11 -0
- data/lib/lighthouse/directives/model_directive.rb +1 -1
- data/lib/lighthouse/directives/registry.rb +1 -1
- data/lib/lighthouse/events/execution_trace.rb +6 -1
- data/lib/lighthouse/events/lifecycle.rb +2 -1
- data/lib/lighthouse/events.rb +9 -0
- data/lib/lighthouse/field_resolver_stack.rb +22 -21
- data/lib/lighthouse/graphql/version.rb +1 -1
- data/lib/lighthouse/incremental/body.rb +76 -0
- data/lib/lighthouse/incremental/defer_directive.rb +34 -0
- data/lib/lighthouse/incremental/delivery.rb +94 -0
- data/lib/lighthouse/incremental/document.rb +242 -0
- data/lib/lighthouse/incremental/gone.rb +6 -0
- data/lib/lighthouse/incremental/legacy.rb +75 -0
- data/lib/lighthouse/incremental/multipart.rb +76 -0
- data/lib/lighthouse/incremental/plan.rb +249 -0
- data/lib/lighthouse/incremental/rules.rb +116 -0
- data/lib/lighthouse/incremental/run.rb +302 -0
- data/lib/lighthouse/incremental/serializer.rb +37 -0
- data/lib/lighthouse/incremental/state.rb +204 -0
- data/lib/lighthouse/incremental/stream_directive.rb +41 -0
- data/lib/lighthouse/incremental/stream_trace.rb +93 -0
- data/lib/lighthouse/incremental/tree.rb +68 -0
- data/lib/lighthouse/namespaces.rb +2 -0
- data/lib/lighthouse/nested_mutations/belongs_to_operations.rb +2 -2
- data/lib/lighthouse/operations.rb +6 -2
- data/lib/lighthouse/pagination.rb +61 -15
- data/lib/lighthouse/persisted_queries.rb +53 -8
- data/lib/lighthouse/rb_lighthouse.rb +34 -0
- data/lib/lighthouse/resolve_info.rb +7 -1
- data/lib/lighthouse/search/auto.rb +21 -0
- data/lib/lighthouse/search/enhancer.rb +127 -0
- data/lib/lighthouse/search/field_check.rb +171 -0
- data/lib/lighthouse/search/pg_search.rb +76 -0
- data/lib/lighthouse/search/query.rb +35 -0
- data/lib/lighthouse/search/result.rb +181 -0
- data/lib/lighthouse/search/searchkick.rb +292 -0
- data/lib/lighthouse/search/searchkick_index.rb +54 -0
- data/lib/lighthouse/search/searchkick_options.rb +74 -0
- data/lib/lighthouse/search.rb +78 -0
- data/lib/lighthouse/support/argument_walk.rb +81 -0
- data/lib/lighthouse/support/count.rb +16 -0
- data/lib/lighthouse/support/failures.rb +28 -0
- data/lib/lighthouse/support/memo.rb +72 -0
- data/lib/lighthouse/support/model_resolver.rb +24 -0
- data/lib/lighthouse/support/relations.rb +31 -0
- data/lib/lighthouse/support/soft_deletes.rb +42 -8
- data/lib/lighthouse/testing.rb +81 -0
- data/sig/lighthouse/controller.rbs +34 -1
- data/sig/lighthouse/directives.rbs +46 -5
- data/sig/lighthouse/events.rbs +7 -0
- data/sig/lighthouse/graphql.rbs +117 -0
- data/sig/lighthouse/search.rbs +132 -0
- data/sig/lighthouse.rbs +69 -1
- metadata +38 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Full-text search for @search: the query the directives write to, the result an
|
|
2
|
+
# engine outside the database answers with, and the adapters of the two gems.
|
|
3
|
+
# The adapter protocol (_SearchAdapter) is experimental. See docs/filtering-and-ordering.md.
|
|
4
|
+
module Lighthouse
|
|
5
|
+
module Search
|
|
6
|
+
# The adapter in use: Config.search, else the detecting Search::Auto.
|
|
7
|
+
def self.adapter: () -> (_SearchAdapter | _SearchAdapterChooser)
|
|
8
|
+
|
|
9
|
+
# The adapter that searches the model (within the scope or index `index` names), or nil.
|
|
10
|
+
def self.adapter_for: (Class model, ?String? index) -> _SearchAdapter?
|
|
11
|
+
|
|
12
|
+
# The scope a model may define for what a search of it may return: `search_results`.
|
|
13
|
+
RESULTS_SCOPE: Symbol
|
|
14
|
+
|
|
15
|
+
# Does the model have a `search_results` scope?
|
|
16
|
+
def self.results_scope?: (Class model) -> bool
|
|
17
|
+
|
|
18
|
+
# The relation through the model's `search_results` scope, if it has one.
|
|
19
|
+
def self.results: (_ModelRelation relation) -> _ModelRelation
|
|
20
|
+
|
|
21
|
+
# Does the field have an argument or input field with @search? Walked once per field.
|
|
22
|
+
def self.searching?: (_FieldDefinition field_def) -> bool
|
|
23
|
+
|
|
24
|
+
# What a search holds: the model, the term and what narrows it.
|
|
25
|
+
class Query
|
|
26
|
+
attr_reader model: Class
|
|
27
|
+
attr_reader term: String
|
|
28
|
+
attr_reader index: String?
|
|
29
|
+
# [column, value] pairs, from @eq, all of which hold.
|
|
30
|
+
attr_reader wheres: Array[[String, untyped]]
|
|
31
|
+
# Adapter-specific options, from @builder on an argument.
|
|
32
|
+
attr_reader options: Hash[Symbol | String, untyped]
|
|
33
|
+
# :with, :only or :without, from @trashed; nil: not given.
|
|
34
|
+
attr_accessor trashed: (:with | :only | :without)?
|
|
35
|
+
|
|
36
|
+
def initialize: (Class model, String term, ?String? index) -> void
|
|
37
|
+
def where: (String | Symbol column, untyped value) -> self
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# A search an engine answers: the page it is asked for and its total.
|
|
41
|
+
class Result
|
|
42
|
+
MAX_WINDOW: Integer
|
|
43
|
+
|
|
44
|
+
attr_reader query: Query
|
|
45
|
+
|
|
46
|
+
# The fiber-local key of the search @canQuery checked, while the field it checks resolves.
|
|
47
|
+
CHECKED: Symbol
|
|
48
|
+
|
|
49
|
+
# The block, in which the search of the same field is `result`, the one @canQuery checked.
|
|
50
|
+
def self.serving: [T] (Result? result) { () -> T } -> T
|
|
51
|
+
# The search @canQuery checked in this resolution, when it is this one; else nil.
|
|
52
|
+
def self.checked: (_EngineSearchAdapter adapter, Query query, String? field) -> Result?
|
|
53
|
+
|
|
54
|
+
# `field`: "Type.field", whose search it is.
|
|
55
|
+
def initialize: (_EngineSearchAdapter adapter, Query query, ?context: untyped, ?field: String?) -> void
|
|
56
|
+
def same_search?: (_EngineSearchAdapter adapter, Query query, String? field) -> bool
|
|
57
|
+
def window: (Integer offset, Integer limit) -> Array[_Record]
|
|
58
|
+
def count: () -> Integer
|
|
59
|
+
READ_LIMIT: Integer
|
|
60
|
+
|
|
61
|
+
def records: (?first: Integer?, ?offset: Integer?) -> Array[_Record]
|
|
62
|
+
# @find's record (more than one match: a GraphQL::ExecutionError), and @first's: the best match that loads.
|
|
63
|
+
def only_record: () -> _Record?
|
|
64
|
+
def first_record: () -> _Record?
|
|
65
|
+
# Every record a page can reach, for @canQuery, in a request of its own: READ_LIMIT at most, else a GraphQL::ExecutionError.
|
|
66
|
+
def every_record: () -> Array[_Record]
|
|
67
|
+
# Did the last `records` answer fewer than asked while more match? How many can a page reach?
|
|
68
|
+
def truncated?: () -> bool
|
|
69
|
+
def reachable: () -> Integer
|
|
70
|
+
# How many of the matches the engine pages through: the adapter's `result_window(query)`, else MAX_WINDOW; nil when the adapter cannot tell.
|
|
71
|
+
def result_window: () -> Integer?
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Searchkick (Elasticsearch / OpenSearch), outside the database.
|
|
75
|
+
class Searchkick
|
|
76
|
+
include _EngineSearchAdapter
|
|
77
|
+
|
|
78
|
+
DEFAULT_TRASHED_COLUMN: String
|
|
79
|
+
DEEP_PAGING_WINDOW: Integer
|
|
80
|
+
|
|
81
|
+
# @trashed filters on the column Config.soft_deletes tells (Support::SoftDeletes.column).
|
|
82
|
+
# `index`: what the engine tells of an index, read and kept.
|
|
83
|
+
def initialize: (?index: Searchkick::Index) -> void
|
|
84
|
+
|
|
85
|
+
# Why the model cannot be searched as it is (a narrowing default scope or search_results, without search_where), or nil.
|
|
86
|
+
def model_error: (Class model) -> String?
|
|
87
|
+
|
|
88
|
+
# The index's max_result_window, read from the engine; else the model's options', else 10,000.
|
|
89
|
+
def result_window: (Query query) -> Integer
|
|
90
|
+
|
|
91
|
+
# What an @builder may ask of Searchkick's search, and which conditions the database applies alike.
|
|
92
|
+
module Options
|
|
93
|
+
# The options of Searchkick's search an @builder may set, and the keys of its body_options.
|
|
94
|
+
BUILDER_OPTIONS: Array[Symbol]
|
|
95
|
+
BODY_OPTIONS: Array[Symbol]
|
|
96
|
+
# The values the database compares a column with as the engine does.
|
|
97
|
+
SQL_SCALARS: Array[Module]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# An index's mapping and max_result_window, read from the engine once per INDEX_READ_TTL seconds (a failed read FAILED_READ_TTL).
|
|
101
|
+
class Index
|
|
102
|
+
INDEX_READ_TTL: Integer
|
|
103
|
+
FAILED_READ_TTL: Integer
|
|
104
|
+
|
|
105
|
+
# `clock`: seconds, monotonic.
|
|
106
|
+
def initialize: (?clock: ^() -> Numeric) -> void
|
|
107
|
+
def fields: (Class model, String? name) -> Array[String]?
|
|
108
|
+
def result_window: (Class model, String? name) -> Integer?
|
|
109
|
+
# Why the last read of the index's `:mapping` or `:window` failed, while that is kept.
|
|
110
|
+
def failure: (:mapping | :window kind, Class model, String? name) -> StandardError?
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# pg_search (PostgreSQL full-text search), in the database.
|
|
115
|
+
class PgSearch
|
|
116
|
+
include _RelationalSearchAdapter
|
|
117
|
+
|
|
118
|
+
DEFAULT_SCOPE: Symbol
|
|
119
|
+
|
|
120
|
+
# Does `index` name one of the model's pg_search scopes?
|
|
121
|
+
def named?: (Class model, String? index) -> bool
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Picks Searchkick, then pg_search, per model.
|
|
125
|
+
class Auto
|
|
126
|
+
include _SearchAdapterChooser
|
|
127
|
+
|
|
128
|
+
def initialize: (?Array[_SearchAdapter]? adapters) -> void
|
|
129
|
+
def searchable?: (Class model, ?String? index) -> bool
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
data/sig/lighthouse.rbs
CHANGED
|
@@ -111,6 +111,12 @@ module Lighthouse
|
|
|
111
111
|
|
|
112
112
|
type relation = _Relation
|
|
113
113
|
|
|
114
|
+
# An ActiveRecord::Relation, which knows its model (a model class does not answer `klass`).
|
|
115
|
+
interface _ModelRelation
|
|
116
|
+
include _Relation
|
|
117
|
+
def klass: () -> Class
|
|
118
|
+
end
|
|
119
|
+
|
|
114
120
|
# An Arel attribute or SQL literal, which predicates build on.
|
|
115
121
|
interface _ArelNode
|
|
116
122
|
def eq: (untyped other) -> _ArelNode
|
|
@@ -128,6 +134,7 @@ module Lighthouse
|
|
|
128
134
|
interface _Request
|
|
129
135
|
def path: () -> String
|
|
130
136
|
def headers: () -> untyped
|
|
137
|
+
def env: () -> Hash[String, untyped]
|
|
131
138
|
end
|
|
132
139
|
|
|
133
140
|
# What has response headers: an ActionDispatch::Response.
|
|
@@ -230,7 +237,9 @@ module Lighthouse
|
|
|
230
237
|
# Config.soft_deletes: what "trashed" means for @softDeletes, @trashed,
|
|
231
238
|
# @restore, @forceDelete and @withoutGlobalScopes. The filters take a model's
|
|
232
239
|
# relation and answer the constrained one; `restore` and `force_delete` act
|
|
233
|
-
# on a record and answer whether they succeeded.
|
|
240
|
+
# on a record and answer whether they succeeded. It may also answer
|
|
241
|
+
# `column(model)` and `kept_value(model)`: the column that marks trashed records
|
|
242
|
+
# and its value for the others, which a Searchkick search filters on.
|
|
234
243
|
interface _SoftDeletes
|
|
235
244
|
def soft_deletes?: (Class model) -> boolish
|
|
236
245
|
def only_trashed: (relation relation) -> relation
|
|
@@ -240,6 +249,37 @@ module Lighthouse
|
|
|
240
249
|
def force_delete: (_Record record) -> boolish
|
|
241
250
|
end
|
|
242
251
|
|
|
252
|
+
# Config.search: what searches a model (see Lighthouse::Search). The protocol is
|
|
253
|
+
# experimental. `searchable?` says whether the model can be searched, within
|
|
254
|
+
# the pg_search scope or the index `index` names. A relational adapter
|
|
255
|
+
# (pg_search) narrows the field's relation, and every other directive applies
|
|
256
|
+
# on top; the others answer a page of records and the total, and take only
|
|
257
|
+
# the directives that include Contracts::SearchBuilder.
|
|
258
|
+
interface _SearchAdapter
|
|
259
|
+
def searchable?: (Class model, ?String? index) -> boolish
|
|
260
|
+
def relational?: () -> boolish
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
interface _RelationalSearchAdapter
|
|
264
|
+
include _SearchAdapter
|
|
265
|
+
def scope: (relation relation, Search::Query query) -> relation
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# `page` answers one entry per hit, nil for a hit it could not load, and the total: every match, counted.
|
|
269
|
+
# It may answer `model_error(model)`: why a model cannot be searched as it is, which
|
|
270
|
+
# Search::FieldCheck makes a schema error.
|
|
271
|
+
# It may also answer `result_window(query)`: how many matches it pages through
|
|
272
|
+
# (Search::Result::MAX_WINDOW when it does not), or nil when it cannot tell.
|
|
273
|
+
interface _EngineSearchAdapter
|
|
274
|
+
include _SearchAdapter
|
|
275
|
+
def page: (Search::Query query, offset: Integer, limit: Integer) -> [Array[_Record?], Integer]
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Search::Auto: picks the adapter per model.
|
|
279
|
+
interface _SearchAdapterChooser
|
|
280
|
+
def adapter_for: (Class model, ?String? index) -> _SearchAdapter?
|
|
281
|
+
end
|
|
282
|
+
|
|
243
283
|
# What DirectiveRegistry#register_manipulator takes: it transforms the SDL
|
|
244
284
|
# before the schema is built.
|
|
245
285
|
interface _SdlManipulator
|
|
@@ -279,6 +319,14 @@ module Lighthouse
|
|
|
279
319
|
def self.schema_log: () -> bool
|
|
280
320
|
def self.schema_log=: (bool? enabled) -> bool?
|
|
281
321
|
|
|
322
|
+
# @defer's limits (Defer), PHP Lighthouse's defer.max_nested_fields and
|
|
323
|
+
# defer.max_execution_ms: rounds of nesting, milliseconds; 0 (the default) is no limit.
|
|
324
|
+
def self.defer_max_nested_fields: () -> Integer
|
|
325
|
+
# Any value is taken, and read as a count (Support::Count): an Integer of 0 or more, or a String of digits.
|
|
326
|
+
def self.defer_max_nested_fields=: (Object? rounds) -> Object?
|
|
327
|
+
def self.defer_max_execution_ms: () -> Integer
|
|
328
|
+
def self.defer_max_execution_ms=: (Object? milliseconds) -> Object?
|
|
329
|
+
|
|
282
330
|
# { queries:, mutations:, subscriptions:, builders:, validators:, events: } => [namespace, ...].
|
|
283
331
|
# Assigning a partial hash overrides only the kinds it names.
|
|
284
332
|
def self.namespaces: () -> Hash[Symbol, Array[String]]
|
|
@@ -344,6 +392,10 @@ module Lighthouse
|
|
|
344
392
|
def self.soft_deletes: () -> _SoftDeletes?
|
|
345
393
|
def self.soft_deletes=: (_SoftDeletes? adapter) -> _SoftDeletes?
|
|
346
394
|
|
|
395
|
+
# What searches a model for @search; nil: detected per model (Search::Auto).
|
|
396
|
+
def self.search: () -> (_SearchAdapter | _SearchAdapterChooser)?
|
|
397
|
+
def self.search=: ((_SearchAdapter | _SearchAdapterChooser)? adapter) -> (_SearchAdapter | _SearchAdapterChooser)?
|
|
398
|
+
|
|
347
399
|
def self.feature_checker: () -> _FeatureChecker
|
|
348
400
|
def self.feature_checker=: (_FeatureChecker? checker) -> _FeatureChecker?
|
|
349
401
|
def self.feature_actor: () -> _UserReader
|
|
@@ -351,7 +403,19 @@ module Lighthouse
|
|
|
351
403
|
end
|
|
352
404
|
|
|
353
405
|
module Support
|
|
406
|
+
# A count a setting holds: an Integer of 0 or more, or a String of digits read as its number.
|
|
407
|
+
module Count
|
|
408
|
+
# Raises ArgumentError for a value that is not one.
|
|
409
|
+
def self?.read: (Symbol name, Object? value) -> Integer?
|
|
410
|
+
end
|
|
411
|
+
|
|
354
412
|
module SoftDeletes
|
|
413
|
+
# :only, :with or :without, for a Trashed enum value; a client error for any other.
|
|
414
|
+
def self.trashed: (untyped value) -> (:only | :with | :without)
|
|
415
|
+
# The column that marks the model's trashed records, as the adapter tells it, and its value for the others.
|
|
416
|
+
def self.column: (Class model) -> String?
|
|
417
|
+
def self.kept_value: (Class model) -> untyped
|
|
418
|
+
|
|
355
419
|
# A nullable timestamp column marking trashed records, with no gem:
|
|
356
420
|
# `Config.soft_deletes = Support::SoftDeletes::Column.new(:archived_at)`.
|
|
357
421
|
class Column
|
|
@@ -360,6 +424,10 @@ module Lighthouse
|
|
|
360
424
|
DEFAULT_COLUMN: String
|
|
361
425
|
|
|
362
426
|
def initialize: (?String | Symbol column) -> void
|
|
427
|
+
|
|
428
|
+
# The column that marks trashed records, and its value for the others, for a search engine to filter on.
|
|
429
|
+
def column: (Class model) -> String
|
|
430
|
+
def kept_value: (Class model) -> nil
|
|
363
431
|
end
|
|
364
432
|
end
|
|
365
433
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lighthouse-graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vaz Innovation
|
|
@@ -58,6 +58,7 @@ files:
|
|
|
58
58
|
- docs/caching.md
|
|
59
59
|
- docs/configuration.md
|
|
60
60
|
- docs/custom-directives.md
|
|
61
|
+
- docs/defer.md
|
|
61
62
|
- docs/directives.md
|
|
62
63
|
- docs/events.md
|
|
63
64
|
- docs/federation.md
|
|
@@ -73,6 +74,7 @@ files:
|
|
|
73
74
|
- docs/schema-organisation.md
|
|
74
75
|
- docs/security.md
|
|
75
76
|
- docs/subscriptions.md
|
|
77
|
+
- docs/testing.md
|
|
76
78
|
- docs/types.md
|
|
77
79
|
- docs/uploads.md
|
|
78
80
|
- docs/validation.md
|
|
@@ -104,6 +106,7 @@ files:
|
|
|
104
106
|
- lib/lighthouse/contracts/field_manipulator.rb
|
|
105
107
|
- lib/lighthouse/contracts/field_middleware.rb
|
|
106
108
|
- lib/lighthouse/contracts/field_resolver.rb
|
|
109
|
+
- lib/lighthouse/contracts/search_builder.rb
|
|
107
110
|
- lib/lighthouse/controller.rb
|
|
108
111
|
- lib/lighthouse/dataloader_sources/association_loader.rb
|
|
109
112
|
- lib/lighthouse/dataloader_sources/model_loader.rb
|
|
@@ -112,6 +115,7 @@ files:
|
|
|
112
115
|
- lib/lighthouse/dataloader_sources/relation_counts_loader.rb
|
|
113
116
|
- lib/lighthouse/dataloader_sources/relation_page_loader.rb
|
|
114
117
|
- lib/lighthouse/default_resolve_dispatcher.rb
|
|
118
|
+
- lib/lighthouse/defer.rb
|
|
115
119
|
- lib/lighthouse/directive_resolvers/aggregate_resolver.rb
|
|
116
120
|
- lib/lighthouse/directive_resolvers/all_resolver.rb
|
|
117
121
|
- lib/lighthouse/directive_resolvers/argument_binding.rb
|
|
@@ -154,6 +158,7 @@ files:
|
|
|
154
158
|
- lib/lighthouse/directives/arguments/filters.rb
|
|
155
159
|
- lib/lighthouse/directives/arguments/more_filters.rb
|
|
156
160
|
- lib/lighthouse/directives/arguments/order_by.rb
|
|
161
|
+
- lib/lighthouse/directives/arguments/search.rb
|
|
157
162
|
- lib/lighthouse/directives/arguments/soft_deletes.rb
|
|
158
163
|
- lib/lighthouse/directives/arguments/where_conditions.rb
|
|
159
164
|
- lib/lighthouse/directives/arguments/where_conditions_base.rb
|
|
@@ -183,6 +188,21 @@ files:
|
|
|
183
188
|
- lib/lighthouse/graphql/version.rb
|
|
184
189
|
- lib/lighthouse/graphql_ruby_patches.rb
|
|
185
190
|
- lib/lighthouse/ide_helper.rb
|
|
191
|
+
- lib/lighthouse/incremental/body.rb
|
|
192
|
+
- lib/lighthouse/incremental/defer_directive.rb
|
|
193
|
+
- lib/lighthouse/incremental/delivery.rb
|
|
194
|
+
- lib/lighthouse/incremental/document.rb
|
|
195
|
+
- lib/lighthouse/incremental/gone.rb
|
|
196
|
+
- lib/lighthouse/incremental/legacy.rb
|
|
197
|
+
- lib/lighthouse/incremental/multipart.rb
|
|
198
|
+
- lib/lighthouse/incremental/plan.rb
|
|
199
|
+
- lib/lighthouse/incremental/rules.rb
|
|
200
|
+
- lib/lighthouse/incremental/run.rb
|
|
201
|
+
- lib/lighthouse/incremental/serializer.rb
|
|
202
|
+
- lib/lighthouse/incremental/state.rb
|
|
203
|
+
- lib/lighthouse/incremental/stream_directive.rb
|
|
204
|
+
- lib/lighthouse/incremental/stream_trace.rb
|
|
205
|
+
- lib/lighthouse/incremental/tree.rb
|
|
186
206
|
- lib/lighthouse/multipart_request.rb
|
|
187
207
|
- lib/lighthouse/namespaces.rb
|
|
188
208
|
- lib/lighthouse/nested_mutations.rb
|
|
@@ -215,18 +235,34 @@ files:
|
|
|
215
235
|
- lib/lighthouse/schema_printer.rb
|
|
216
236
|
- lib/lighthouse/schema_report.rb
|
|
217
237
|
- lib/lighthouse/schema_stitcher.rb
|
|
238
|
+
- lib/lighthouse/search.rb
|
|
239
|
+
- lib/lighthouse/search/auto.rb
|
|
240
|
+
- lib/lighthouse/search/enhancer.rb
|
|
241
|
+
- lib/lighthouse/search/field_check.rb
|
|
242
|
+
- lib/lighthouse/search/pg_search.rb
|
|
243
|
+
- lib/lighthouse/search/query.rb
|
|
244
|
+
- lib/lighthouse/search/result.rb
|
|
245
|
+
- lib/lighthouse/search/searchkick.rb
|
|
246
|
+
- lib/lighthouse/search/searchkick_index.rb
|
|
247
|
+
- lib/lighthouse/search/searchkick_options.rb
|
|
218
248
|
- lib/lighthouse/server_directives.rb
|
|
219
249
|
- lib/lighthouse/subscription.rb
|
|
250
|
+
- lib/lighthouse/support/argument_walk.rb
|
|
220
251
|
- lib/lighthouse/support/arguments.rb
|
|
221
252
|
- lib/lighthouse/support/authorization.rb
|
|
222
253
|
- lib/lighthouse/support/batching.rb
|
|
254
|
+
- lib/lighthouse/support/count.rb
|
|
223
255
|
- lib/lighthouse/support/directive_args.rb
|
|
224
256
|
- lib/lighthouse/support/environment.rb
|
|
257
|
+
- lib/lighthouse/support/failures.rb
|
|
258
|
+
- lib/lighthouse/support/memo.rb
|
|
225
259
|
- lib/lighthouse/support/model_resolver.rb
|
|
226
260
|
- lib/lighthouse/support/naming.rb
|
|
227
261
|
- lib/lighthouse/support/preload.rb
|
|
262
|
+
- lib/lighthouse/support/relations.rb
|
|
228
263
|
- lib/lighthouse/support/soft_deletes.rb
|
|
229
264
|
- lib/lighthouse/tasks/lighthouse.rake
|
|
265
|
+
- lib/lighthouse/testing.rb
|
|
230
266
|
- lib/lighthouse/type.rb
|
|
231
267
|
- lib/lighthouse/type_resolution.rb
|
|
232
268
|
- lib/lighthouse/upload.rb
|
|
@@ -241,6 +277,7 @@ files:
|
|
|
241
277
|
- sig/lighthouse/directives.rbs
|
|
242
278
|
- sig/lighthouse/events.rbs
|
|
243
279
|
- sig/lighthouse/graphql.rbs
|
|
280
|
+
- sig/lighthouse/search.rbs
|
|
244
281
|
homepage: https://github.com/Vaz-Innovation/lighthouse-graphql
|
|
245
282
|
licenses:
|
|
246
283
|
- MIT
|