Skip to content
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

Closed
pmelab opened this issue May 8, 2017 · 2 comments
Closed

Raw field data formatter #87

pmelab opened this issue May 8, 2017 · 2 comments
Assignees
Labels

Comments

@pmelab
Copy link
Contributor

pmelab commented May 8, 2017

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.

@pmelab pmelab added the feature label May 8, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jun 2, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jun 10, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jun 18, 2017
…s out of DisplayedFieldDeriver into FieldDeriverBase. Added RawValueField deriver extending FieldDeriverbase.
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jun 18, 2017
@shawnmmatthews
Copy link

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?

@pmelab
Copy link
Contributor Author

pmelab commented Jun 22, 2017

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.

blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 3, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 4, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 4, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 4, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 4, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 5, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 5, 2017
blazeyo added a commit to blazeyo/graphql-drupal that referenced this issue Jul 31, 2017
@fubhy fubhy closed this as completed Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants