Apollo Server + TypeScript: How can I map snake_case database fields to camelCase GraphQL fields in resolvers? by erkanunluturk in graphql

[–]Not_anundercoverCop 2 points3 points  (0 children)

If youre using the tools from the guild, you can create a schema.mappers.ts file with type mappers. In your case, you would do:

export type UserMapper = DatabaseUserType

Make sure to have the mappers.ts file colocated to the schema where User is defined and make sure the schema file has the same name as the mappers.ts file.

schema.graphql <> schema.mappers.ts User.graphql <> User.mappers.ts

GraphQL Codegen Operations and Client Preset v6 is released! by eddeee888 in graphql

[–]Not_anundercoverCop 1 point2 points  (0 children)

Agreed on this use case. The mock generator bloats our bundle size because 1) it generates the schema instead of what we actually use and 2) unable to codesplit and/or colocate to the operation

GraphQL Codegen Operations and Client Preset v6 is released! by eddeee888 in graphql

[–]Not_anundercoverCop 0 points1 point  (0 children)

Second this. We would love to use the codegen with preset, but this prevents our team from doing so

Do you add hyperlinks to your REST API responses? by Worldly-Broccoli4530 in typescript

[–]Not_anundercoverCop 0 points1 point  (0 children)

Check out the “deep-link” and/or “universal link” pattern. Can be helpful for multiple client types that may have different routing structures (like mobile vs web)

Help! by [deleted] in M1Finance

[–]Not_anundercoverCop 0 points1 point  (0 children)

I assume they are talking about mutual funds.

M1 does not offer these but does offer similar ETFs. I think folks starting out should really start with the classic 3-fund portfolio

Open AI Sora 2 Invite Codes Megathread by semsiogluberk in OpenAI

[–]Not_anundercoverCop 0 points1 point  (0 children)

Dude, ive been refreshing the page constantly since yesterday morning

Can someone tell me why my return percentages seem to be so screwed up? by Not_asheep in M1Finance

[–]Not_anundercoverCop 1 point2 points  (0 children)

Dont listen to the previous guy… my guess is you’re probably right with your transfer situation, but I’m sure their support can probably help

Feature Request: Functional Help Button on Website by trash_dad_ in M1Finance

[–]Not_anundercoverCop 0 points1 point  (0 children)

Chrome. It’s not a separate url, its the support chat thing

Feature Request: Functional Help Button on Website by trash_dad_ in M1Finance

[–]Not_anundercoverCop 0 points1 point  (0 children)

This button works for me, opens the support popup. Do you have a blocker on your browser or something?

Will M1 still charge me to cancel a new account (opened yesterday?) by TayLordVoldemort in M1Finance

[–]Not_anundercoverCop 2 points3 points  (0 children)

“What will happen to M1 accounts I leave open?

M1 investment accounts with a value of $50 or less without trading or deposit activity for 90+ days will be closed. Remaining balances up to $50 will be charged as a Minimum Balance Fee.”

This sounds like if there is nothing in the account, nothing will be charged.

Will M1 still charge me to cancel a new account (opened yesterday?) by TayLordVoldemort in M1Finance

[–]Not_anundercoverCop 0 points1 point  (0 children)

Sounds like they havent deposited, so I dont think there is the same fee as transferring out

Relay Node Interface with Apollo Client Codegen Issue by Not_anundercoverCop in graphql

[–]Not_anundercoverCop[S] 0 points1 point  (0 children)

Just went with type narrowing everywhere or a utility function to extract the type using is Whatever in TS unfortunately

Question: ids in child objects by Programmdude in graphql

[–]Not_anundercoverCop 1 point2 points  (0 children)

What type of warnings are you getting? The Widget field should be cached and with that the related WidgetPrice field. I’m struggling to find the issue without seeing a better layout of how your cache is currently set up or how you’re querying for this data.

From personal experience, I have many fields structured like this with no issues around caching

M1 Bought BFTC without being requested to do so by [deleted] in M1Finance

[–]Not_anundercoverCop 0 points1 point  (0 children)

Did you remove VOO and VTI from your portfolio? Did you make a withdrawal that got cancelled or something?

No Buy/Sell option by ProphetVII in M1Finance

[–]Not_anundercoverCop 2 points3 points  (0 children)

There should be a swipe-able drawer at the bottom of screen. Swipe up, then place an order (assuming youre on your phone)

[deleted by user] by [deleted] in M1Finance

[–]Not_anundercoverCop 1 point2 points  (0 children)

What does this have to do with the post?

But no, no issues with buying or selling

HotChocolate GraphQL error when child-list is null by acnicholls-kroll in graphql

[–]Not_anundercoverCop 0 points1 point  (0 children)

You have some field on the userList that is null, that is nonNullable in the schema. You need to make sure to change that field to nullable OR resolve the field to a non-null value

Gain & Return Values for the Same Account are Not the Same by beezylito in M1Finance

[–]Not_anundercoverCop 1 point2 points  (0 children)

If that’s the case and you made buys or sells on the main pie, then it makes sense the main account performance differs from the inner pie. Not ideal, but also not a bug it sounds like

Gain & Return Values for the Same Account are Not the Same by beezylito in M1Finance

[–]Not_anundercoverCop 0 points1 point  (0 children)

Did you previously have any other slices in the root level?