@coderich/autograph 0.10.11 → 0.12.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.
package/package.json
CHANGED
package/src/graphql/ast/Node.js
CHANGED
|
@@ -117,7 +117,7 @@ module.exports = class Node {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
getVirtualRef() {
|
|
120
|
-
return this.getDirectiveArg('
|
|
120
|
+
return this.getDirectiveArg('join', 'by');
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
getAuthz() {
|
|
@@ -153,7 +153,7 @@ module.exports = class Node {
|
|
|
153
153
|
* Is the field virtual; does it's value come from another model
|
|
154
154
|
*/
|
|
155
155
|
isVirtual() {
|
|
156
|
-
return Boolean(this.getDirectiveArg('
|
|
156
|
+
return Boolean(this.getDirectiveArg('join', 'by'));
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -55,17 +55,10 @@ module.exports = (schema) => {
|
|
|
55
55
|
deserialize: [AutoGraphPipelineEnum!]
|
|
56
56
|
) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION | SCALAR
|
|
57
57
|
|
|
58
|
-
directive @
|
|
59
|
-
to: AutoGraphMixed # The MODEL to
|
|
58
|
+
directive @join(
|
|
59
|
+
to: AutoGraphMixed # The MODEL to join to (default's to modelRef)
|
|
60
60
|
by: AutoGraphMixed! # The FIELD to match yourself by
|
|
61
|
-
use: AutoGraphMixed # The VALUE to use (default's to @
|
|
62
|
-
|
|
63
|
-
# These are needed for Apollo Federation
|
|
64
|
-
# Adding these here in an attempt to avoid collision and need for dynamic rewrite
|
|
65
|
-
as: AutoGraphMixed
|
|
66
|
-
url: AutoGraphMixed
|
|
67
|
-
import: AutoGraphMixed
|
|
68
|
-
for: AutoGraphMixed
|
|
61
|
+
use: AutoGraphMixed # The VALUE to use (default's to @join'd value); useful for many-to-many relationships
|
|
69
62
|
) on FIELD_DEFINITION
|
|
70
63
|
|
|
71
64
|
directive @index(
|