Streamline the file upload handling in RelayEnvironment by removing
redundant hasOwnProperty checks when processing uploadables. These
checks were unnecessary since we're already iterating through the keys
of the object. This change reduces code verbosity while maintaining
the same functionality.
Signed-off-by: gearnode <bryan@frimin.fr>
Add support for file uploads in RelayEnvironment by implementing
multipart form[1] handling via FormData when uploadables are
present. Maintain backward compatibility for standard GraphQL queries.
[1] https://github.com/jaydenseric/graphql-multipart-request-spec
Signed-off-by: gearnode <bryan@frimin.fr>