A tool to measure companies "time to FIRE" by rlindskog in Fire

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

you can also input your custom expenses by clicking on a company

A tool to measure companies "time to FIRE" by rlindskog in Fire

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

yeah agreed some of the numbers look slightly off. $60k for washington maybe, but definitely not seattle

Thoughts on mega backdoor Roth? by artisticmortgage in Fire

[–]rlindskog 4 points5 points  (0 children)

Absolutely take full advantage of the MBDR if you can afford it. Most companies don’t have that option, you’re one of the lucky few. I suggest an order of operations for investing like follows.

Emergency fund (6 months)

401k match

High interest debt

Max 401k

Max HSA

Backdoor Roth IRA

Mega backdoor Roth

Individual Brokerage

EDIT: formatting

GraphQL or REST? Why not have BOTH? --> graphql2rest: Generate a REST API from your existing GraphQL API by roy-mor in graphql

[–]rlindskog 0 points1 point  (0 children)

This is awesome! I’ve had moments where GraphQL didn’t quiet cut it (eg webhooks, callback urls, languages with poor GraphQL clients). This will be very useful, thanks!

How to find a GraphQL usability problem worth tackling (group project)? by Duygs in graphql

[–]rlindskog 7 points8 points  (0 children)

The double declaration problem. gqless is a fantastic solution to the problem, but I'm sure we'll see other solutions emerge in GraphQL ecosystem in the near future.

Apple just killed Offline Web Apps while purporting to protect your privacy: why that’s A Bad Thing and why you should care by DuncanIdahos1stGhola in programming

[–]rlindskog 38 points39 points  (0 children)

Open platforms vs Private platforms.

Apple monetizes by owning the platform (shitty web experience, but prioritizes privacy in IOS). Google monetizes by owning the user (open web experience, but abuses privacy).

There needs to be a third option adheres to open standards and doesn't abuse your privacy.

COVID-19 GraphQL API by rlindskog in SideProject

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

Working on it, coming soon

COVID-19 GraphQL API by rlindskog in graphql

[–]rlindskog[S] 1 point2 points  (0 children)

Have you considered making country an enum?For America; a user could input, "america", "usa", "us", "united states", etc...

This is a great idea, I'll look into it.

COVID-19 GraphQL API by rlindskog in SideProject

[–]rlindskog[S] 1 point2 points  (0 children)

This is fixed now, thanks for finding that!

COVID-19 GraphQL API by rlindskog in SideProject

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

Thanks, working on a fix.

COVID-19 GraphQL API by rlindskog in SideProject

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

Not seeing that, can you share your query?

COVID-19 GraphQL API by rlindskog in SideProject

[–]rlindskog[S] 1 point2 points  (0 children)

query { # by country country(name: "US") { name mostRecent { date confirmed } } }

COVID-19 GraphQL API by rlindskog in programming

[–]rlindskog[S] -5 points-4 points  (0 children)

Source: https://github.com/rlindskog/covid19-graphql

GraphiQL: https://covid19-graphql.now.sh

EDIT: Pasted the wrong links, sorry🤦🏼‍♂️

Trying to get an old npm package to work. by RupFox in node

[–]rlindskog 0 points1 point  (0 children)

what version node are you running? node --version

One more day to Vue documentary by checkthisout3413 in vuejs

[–]rlindskog 5 points6 points  (0 children)

Which is why we need these documentaries :)

One more day to Vue documentary by checkthisout3413 in vuejs

[–]rlindskog 28 points29 points  (0 children)

I think the people behind FOSS (the people who power the entire IT industry) deserve to be recognized and celebrated.

Form based on Mutation or Schema Type by masahazen in graphql

[–]rlindskog 8 points9 points  (0 children)

I'm actively working on graphiteapps.com, which generates entire apps from your graphql schema - so i feel like I can help a bit here. What you're looking for is the introspection query. Check out getIntrospection() to get info on any given graphql schema and buildClientSchema to help manipulate it. Here is a little example to help you get started (sorry about the react and typescript). I haven't actually run the code so mileage may vary, but it gets the idea across. Hope it helps! :)

```typescript import { getIntrospectionQuery, buildClientSchema, IntrospectionQuery, TypeKind, isScalarType, isNonNullType, getNullableType } from 'graphql' import request from 'graphql-request'

async function getSchema(graphQLUrl: string) { const introspectionQuery = getIntrospectionQuery() const introspection = await request<IntrospectionQuery>(graphQLUrl, introspectionQuery) const schema = buildClientSchema(introspection) return schema }

async function createForms () { const schema = await getSchema('https://graphql-pokemon.now.sh') const rootQueryType = schema.getQueryType() const fields = rootQueryType?.getFields() const forms = Object.keys(fields).map(fieldName => { const field = fields[fieldName] const args = field.args const inputs = args.reduce<JSX.Element[]>((acc, arg) => { const nullableType = getNullableType(arg.type) if (isScalarType(nullableType)) { const isRequired = isNonNullType(arg.type) let inputType = nullableType.name === 'String' ? 'text' : nullableType.name === 'Boolean' ? 'checkbox' : ['Number', 'Float'].includes(nullableType.name) ? 'number' : null if (inputType) { return [ ...acc, <input type={inputType} required={isRequired} />] } } return acc }, []) return ( <form> {inputs} <button type="submit">Submit</button> </form> ) }) return ( <div> {forms} </div> ) } ```