-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC Nesting scalars #42
Comments
Maybe instead of inheritance (
|
@fesor
type A { field: Any }
extend type A { field: String } # <<< "field" type override
Having the same row as the parent, we will know that the value is converted to a string with the ability to override this behavior with the help of, for example, directives, like here: https://railt.org/docs/sdl/scalar/custom At the moment, each scalar has a strictly wired inheritance scheme and the permissibility of overriding. Right in the code: https://github.com/railt/railt/blob/master/src/Railt/Reflection/Standard/Scalars/StringType.php#L17 |
Add inheritance scalars syntax:
In this case, all behavior is completely inherited from the parent. In the absence of a parent, the behavior is reduced to type
Any
: https://railt.org/docs/sdl/scalar/anyThe text was updated successfully, but these errors were encountered: