-
Notifications
You must be signed in to change notification settings - Fork 202
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
Raw field data formatter #87
Comments
…s out of DisplayedFieldDeriver into FieldDeriverBase. Added RawValueField deriver extending FieldDeriverbase.
Is the idea of this to strip the html before it gets to Graphql regardless of the D8 theme? I've been currently handling this using a function to generate a new stipped version of props in React (or worse dangerously setting innerhtml if its more practical). It would be super helpful to be able to do this prior to sending everything over via field formatting from the UI. Is there currently a better way of handling this? |
This feature is actually about getting non-sanitised values. Not using it (and therefore receiving the rendered field) will invoke Drupal filters and should - depending on your text formats configuration - already return safe values. So you probably won't use this on a rich text field, but on something more complex like address fields, as discussed in #144. |
…olumn to schema_column.
…should not be used outside of GraphQL.
Add a special field formatter that exposes raw field data in GraphQL.
We will require type and field derivers that generate types for all configured field types.
The text was updated successfully, but these errors were encountered: