You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `@exclude(operations: [READ])` and `@query(read: false, aggregate: false)`.
587
+
* `@exclude(operation: [CREATE, UPDATE, DELETE])` and `@mutation(operations: [])`.
588
+
589
+
Whilst there is more verbosity, the directives are significantly more powerful and extensible as the library gains features.
590
+
577
591
[full-text-migration]
578
592
=== `@fulltext` changes
579
593
@@ -856,6 +870,16 @@ type Record @limit(default: 10, max: 100) {
856
870
}
857
871
----
858
872
873
+
=== `@readonly` and `@writeonly` removed
874
+
875
+
The `@readonly` and `@writeonly` directives have been removed in favor of more granular configuration directives.
876
+
The new `@selectable` and `@settable` directives can be used to configure not only if fields are readable or writable, but also when they should be readable or writable.
877
+
878
+
As a direct migration, the following usages are equivalent:
879
+
880
+
* `@readonly` and `@settable(onCreate: false, onUpdate: false)`.
881
+
* `@writeonly` and `@selectable(onRead: false, onAggregate: false)`.
0 commit comments