apollo-boost

ApolloClient from apollo-boost attemped to assign to readonly property

主宰稳场 提交于 2021-02-10 03:09:07
问题 I'm working with react-native, and trying to load Apollo from apollo-boost. When I attempt to import the client, I get the error message "Attempted to assign to readonly property." I'm not sure how to work around this, and it seems from the stack trace that it's in the apollo-boost package. Anybody know how I can work around this? edit: Adding picture and details. I'm getting this when I try to load the app through Expo. Right when it starts, I get this. The first file in my app the stack

ApolloClient from apollo-boost attemped to assign to readonly property

六眼飞鱼酱① 提交于 2021-02-10 03:09:00
问题 I'm working with react-native, and trying to load Apollo from apollo-boost. When I attempt to import the client, I get the error message "Attempted to assign to readonly property." I'm not sure how to work around this, and it seems from the stack trace that it's in the apollo-boost package. Anybody know how I can work around this? edit: Adding picture and details. I'm getting this when I try to load the app through Expo. Right when it starts, I get this. The first file in my app the stack

ApolloClient from apollo-boost attemped to assign to readonly property

非 Y 不嫁゛ 提交于 2021-02-10 03:07:32
问题 I'm working with react-native, and trying to load Apollo from apollo-boost. When I attempt to import the client, I get the error message "Attempted to assign to readonly property." I'm not sure how to work around this, and it seems from the stack trace that it's in the apollo-boost package. Anybody know how I can work around this? edit: Adding picture and details. I'm getting this when I try to load the app through Expo. Right when it starts, I get this. The first file in my app the stack

Apollo boost - __typename in query prevent new mutation

百般思念 提交于 2019-12-24 01:36:19
问题 I have a problem in my meteor/react/apollo (with boost) project. When I query data from the server, it adds __typename to every object and subobject in my query but it my case it creates a major issue as I normally reuse these data to send them to other mutation. Now the other mutation tell me there is an error because the __typename field is not defined in my graphql schema. I tried to fix by adding the addTypename: false field to my apollo client but it didn't change anything (note I am