Add altStyleId to PetAppearance type and resolvers #2
Loading…
Reference in a new issue
No description provided.
Delete branch "dice/impress-2020:add-altStyleId"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes sense to me overall! I have a few questions about details. I also imagine, if we were being real serious, we'd want to expand this into a whole
AltStyleGraphQL type… but I'm also comfy just doing whatever.Also though, I'm curious what your use case is, and if I can address it more directly for ya. I know I put you through all this GraphQL business back when it all popped off, and I wonder if it might be good to keep simplifying our way off of it and into endpoints that just do what you need.
@ -57,0 +81,4 @@if (altColorPetState) {return { id: altColorPetState.id, altStyleId, altColorId };}}I don't really follow what's going on in this block. In what cases would the alt color connect to the pet state? My understanding is they're totally disconnected from one another. (That's how we architected it on our end, anyway.)
@ -273,6 +285,7 @@ const resolvers = {},PetAppearance: {altColorId: ({ altColorId }) => (altColorId),I suppose we should either have this for both
altStyleIdandaltColorId, or for neither. (I think maybe if we omit the resolvers it just does this exact operation by default? I'll check that before merging.)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.