apollographql / apollographql/apollo-tooling

Is it possible to save GraphQLResult into CoreData?

Open
#2,133 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

I am trying to save GraphQL result into CoreData. I have created a model class for my response using Codable.

And, I am trying to decode the result using JSONDecoder. I end up with this error.

Screenshot 2020-09-28 at 2 03 29 PM

@designatednerd Can you please help me with this?

Contributor guide

Open the contributing guide

Research direction

No repository file or test is identified; start by reviewing the reported GraphQLResult, Codable, JSONDecoder, and CoreData context in the issue body and attached screenshot. Done would require a confirmed explanation or documented path for saving the decoded result, but the issue does not define a code change.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, swift
Domain
database, mobile
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.