profile
viewpoint
Mikael Karon mikaelkaron @wetryfun Stockholm https://mikael.karon.se Lover of OSS - creator of @troopjs, @mu-lib and @open-learning.

mikaelkaron/grunt-git-describe 42

Describes current git commit

apexcharts/stencil-apexcharts 25

📊 Stencil Component for ApexCharts https://apexcharts.com

mikaelkaron/grunt-json-replace 6

Read, replace and write json files

mikaelkaron/grunt-semver 5

Semantic versioning for grunt

anonrig/express-router-wrapper 2

Express Router wrapper for Sync, Promise and Async-Await support

mikaelkaron/connect-bower 1

Middleware for serving bower packages

mikaelkaron/grunt-git-dist 1

Release using git

mikaelkaron/apexcharts.js 0

📊 Interactive JavaScript Charts built on SVG

mikaelkaron/apollo-server 0

🌍 GraphQL server for Express, Connect, Hapi, Koa and more

issue commentapexcharts/stencil-apexcharts

Changing the number entries in series causes rendering errors

Could you provide some code that reproduces the error? (Even if a fix would be re-render it’s something we may want to look at)

mlachance

comment created time in 4 days

startedsickcodes/Docker-OSX

started time in 11 days

startedmcollina/openapi-graphql

started time in 12 days

startedmercurius-js/cache

started time in a month

startedmercurius-js/auth

started time in a month

startedmercurius-js/validation

started time in a month

issue commentapexcharts/apexcharts.js

ShadowDOM support

Based on my old comment the styleInject function did this, I'm not able to (quickly) find that anymore...

As for web-component support, are you by any chance using https://github.com/apexcharts/stencil-apexcharts/ for that?

Pupix

comment created time in a month

startedduckdb/duckdb

started time in a month

startedbrielov/typed

started time in a month

startedferdikoomen/openapi-typescript-codegen

started time in 2 months

issue closedmercurius-js/mercurius

unable to get __resolveReference to execute

I've copied the Federation with __resolveReference caching example and made a small modification:

const resolvers = {
  Query: {
    me: () => {
      console.log('Resolver:Query')
      return users['1']
    }
  },
  User: {
    __resolveReference: async (source, args, context, info) => {
      console.log('Resolver:User')
      return users[source.id]
    }
  }
}

const loaders = {
  User: {
    __resolveReference: async (queries, context) => {
      console.log('Loaders:User')
      // This should be a bulk query to the database
      return queries.map(({ obj }) => users[obj.id])
    }
  }
}

However when I try to query the only thing I see on the console is Resolver:Query - so to me it looks like the __resolveReference is never called (neither on the resolvers or loaders)

I've also tried to have __resolveReference exclusively in resolvers or loaders but there's no difference.

closed time in 2 months

mikaelkaron

issue commentmercurius-js/mercurius

unable to get __resolveReference to execute

__resolveReference is the resolver used for the _entities Query which is sent by the gateway when it needs to resolve a reference between services (like https://github.com/mercurius-js/mercurius/blob/master/examples/gateway.js#L107)

That makes a lot more sense. Maybe just mentioning it in the fereration page could help others like me.

mikaelkaron

comment created time in 2 months

issue commentmercurius-js/mercurius

unable to get __resolveReference to execute

Hm. From the code examples on the federation page I understood it that __resolveReference would be called normally. So if I understand it correctly __resolveReference will only be called gateway is configured?

mikaelkaron

comment created time in 2 months

issue openedmercurius-js/mercurius-typescript

types for `__resolveReference` not generated for loaders

If you add the @key directive to a type the correct __resolveReference is generated for resolvers but not for loaders

created time in 2 months

issue openedmercurius-js/mercurius

unable to get __resolveReference to execute

I've copied the Federation with __resolveReference caching example and made a small modification:

const resolvers = {
  Query: {
    me: () => {
      console.log('Resolver:Query')
      return users['1']
    }
  },
  User: {
    __resolveReference: async (source, args, context, info) => {
      console.log('Resolver:User')
      return users[source.id]
    }
  }
}

const loaders = {
  User: {
    __resolveReference: async (queries, context) => {
      console.log('Loaders:User')
      // This should be a bulk query to the database
      return queries.map(({ obj }) => users[obj.id])
    }
  }
}

However when I try to query the only thing I see on the console is Resolver:Query - so to me it looks like the __resolveReference is never called (neither on the resolvers or loaders)

I've also tried to have __resolveReference exclusively in resolvers or loaders but there's no difference.

created time in 2 months

startedstrapi/strapi

started time in 2 months

create barnchwetryfun/eslint-config

branch : master

created branch time in 2 months

created repositorywetryfun/eslint-config

created time in 2 months

startedmattpocock/xstate-codegen

started time in 2 months

startedmercurius-js/mercurius-typescript

started time in 2 months

startedmercurius-js/mercurius

started time in 2 months

fork mikaelkaron/mercurius-typescript

TypeScript usage examples and "mercurius-codegen" for Mercurius

https://mercurius.dev

fork in 2 months

issue openedmercurius-js/mercurius-typescript

prevent generation of prebuilt schema

I saw that you've added support for configuring prebuilt schema path but in my case I want to prevent the file from being written at all.

Would it be hard to add a configuration option for disabling this?

created time in 2 months

startedpaljs/prisma-tools

started time in 3 months

PR opened dnlup/fastify-traps

fix: Make plugin options optional

Without this change there will be a TS error unless all parameters are supplied.

+7 -7

0 comment

1 changed file

pr created time in 3 months

push eventmikaelkaron/fastify-traps

Mikael Karon

commit sha 3434b368f6c84d5c1f88051f6e06de6fd36620de

fix: Make plugin options optional

view details

push time in 3 months

fork mikaelkaron/fastify-traps

A fastify plugin to close the server gracefully on SIGINT and SIGTERM signals

fork in 3 months

startedqeeqbox/social-analyzer

started time in 3 months

more