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
Output object removes values instead of setting to null #4
Comments
I've been a little cheeky, and am not strictly following my own spec. I initially considered making the spec more complicated to allow this behavior, but in the end decided it was easier to simply say "replace all file instances with Technically the This End-to-end in my implementations, everything works slightly more efficiently by not strictly following the spec for object property file values. Slightly less processing, and less sent up the wire.
Good question. Do you think I should:
|
(2) would be the easiest for me personally, since I would only need to run |
I am writing a Scala implementation of the
apollo-upload-server
that follows the existing specification here. I ran into an issue with how theextract-files
library processes thevariables
object when it contains aFile
object. The specification says that all file objects should be replaced with null, however, this line is deleting the field instead. Meaning that for an object like:The variables object gets converted into
"variables: {}"
during file extraction rather than"variable": { file: null }
. Which should I be following? Or is the expected behavior just one or the other?The text was updated successfully, but these errors were encountered: