You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Thanks for this project!
I used the FileUpload types, mutations you provided on this project; I am using Apollo Client in my react application with the following configuration:
import{InMemoryCache}from"apollo-cache-inmemory";import{ApolloLink}from"apollo-boost";importApolloClientfrom"apollo-client";import{setContext}from"apollo-link-context";import{createUploadLink}from"apollo-upload-client";constauthLink=setContext(async(_,{ headers })=>{// auth link settings});consthttpLink=createUploadLink({uri: "https://localhost:5001/graphql"});constcache=newInMemoryCache({dataIdFromObject: object=>object.id});exportconstclient=newApolloClient({
cache,link: ApolloLink.from([authLink,httpLink])});
When I upload a file from my react application, RootValue gets null (var httpContext = (HttpContext)context.RootValue;). any idea?
The text was updated successfully, but these errors were encountered:
Hi @SirwanAfifi
Many thanks for this issue.
Would you create a small sample that can easily executed in the browser, please? That would help a lot to debug this behavior. Many Thanks :-)
Uh oh!
There was an error while loading. Please reload this page.
Thanks for this project!
I used the FileUpload types, mutations you provided on this project; I am using Apollo Client in my react application with the following configuration:
When I upload a file from my react application,
RootValue
gets null (var httpContext = (HttpContext)context.RootValue;
). any idea?The text was updated successfully, but these errors were encountered: