profile
viewpoint
Andréas Hanss ScreamZ Kaliop Interactive Media Montpellier, France https://linktr.ee/scr34mz 🇫🇷French baguette guy 📌Based in Montpellier ⚒Working with modern javascript to build performant 🌍Web and 📱Mobile apps.

kaliop/ezdocker-stack 28

A complete Docker stack to run eZPublish 5+

ScreamZ/aurora 28

📦 A set of configs and rules for Typescript projects.

ScreamZ/anti-captcha 17

A modern JS/TS wrapper around anti-captcha API (Captcha Breaker Software)

kuzzleio/kuzzle-plugin-cluster 6

Kuzzle cluster mode

kaliop/docker-images 5

Kaliop Docker images

ScreamZ/apollo-flash 1

⚡A smart and efficient toolkit to quickly bootstrap a GraphQL 👨‍🚀apollo-server👩‍🚀 project.

ScreamZ/awesome-react-native 0

Awesome React Native components, news, tools, and learning material!

ScreamZ/awesome-vue 0

A curated list of awesome things related to Vue.js

issue commentnestjs/graphql

Working with interface types resolvers

Figured out later, thanks

ScreamZ

comment created time in 17 hours

startedsplitbee/react-notion

started time in 4 days

startedpiotrwitek/utility-types

started time in 5 days

issue openednestjs/graphql

Working with interface types resolvers

I'm submitting a...

<pre><code> [ ] Regression <!--(a behavior that used to work and stopped working in a new release)--> [ ] Bug report [ x ] Feature request [ x ] Documentation issue or request [ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow. </code></pre>

I would like to define resolvers for interface types, which are normally not allowed.

Currently, I'm doing this to handle those cases:

For those who want more about it, read my initial issue at https://stackoverflow.com/questions/61867673/nestjs-x-graphql-x-typegoose-issue-on-sub-resolver

// One annotation per things that implement my CurrentUserDTO interface
@Resolver(() => IndividualUserDTO)
@Resolver(() => ProfessionnalUserDTO)
export class CurrentUserDTOResolver {
  constructor(
    private readonly supplierService: SupplierService,
    private readonly volunteerService: VolunteerService,
    private readonly productService: ProductService,
  ) {}

  @ResolveField(() => [Supplier])
  async suppliers(@Parent() user: CurrentUserDTO) {
    return user.suppliers.length > 0
      ? this.supplierService.find({ _id: { $in: user.suppliers } })
      : [];
  }
}

Interrogation

While this is working great, I would like to be sure I'm not hacking the library in terms of practice to make this work

I saw that an inheritResolversFromInterfaces property exists in apollo https://www.apollographql.com/docs/apollo-server/api/apollo-server/#makeexecutableschema

But I can't figure out how to use it in NestJS… Maybe you could help me? Look like it's not implemented to pass args to makeExecutableSchema

Environment

<pre><code> ➜ yarn list --depth=0 --pattern nest yarn list v1.22.4 ├─ @nestjs/cli@7.1.4 ├─ @nestjs/common@7.0.9 ├─ @nestjs/config@0.4.0 ├─ @nestjs/core@7.0.9 ├─ @nestjs/graphql@7.3.5 ├─ @nestjs/jwt@7.0.0 ├─ @nestjs/mapped-types@0.0.3 ├─ @nestjs/passport@7.0.0 ├─ @nestjs/platform-express@7.0.9 ├─ @nestjs/schematics@7.0.0 ├─ @nestjs/testing@7.0.9 └─ nestjs-typegoose@7.1.22

</code></pre>

created time in 7 days

issue commentTrilonIO/zeit-now-nestjs

Live deployment is dead

I don't think so, it will work as long as your app boot fast,but then it's totally random race condition, you should use app engine or heroku for nestjs without config, or try the azure function driver

Yokutto

comment created time in 7 days

issue commenttypegoose/typegoose

Using typegoose causes requests to stay at pending

Never extends mongoose.Document, it makes that issue of pending

cai-zhuo

comment created time in 10 days

issue closedkpfromer/nestjs-typegoose

A lot of warning

hello, I'm getting a lot of theses on start… Am I doing something wrong ?

Screenshot 2020-05-15 at 15 00 48

closed time in 10 days

ScreamZ

issue commentkpfromer/nestjs-typegoose

A lot of warning

This was due to my model

class User extends mongoose.Document

You should never extend typegoose that way, we are working on some PR for that

ScreamZ

comment created time in 10 days

issue openedkpfromer/nestjs-typegoose

A lot of warning

hello, I'm getting a lot of theses on start… Am I doing something wrong ?

Screenshot 2020-05-15 at 15 00 48

created time in 10 days

startedkpfromer/nestjs-typegoose

started time in 10 days

startedai/nanoid

started time in 11 days

startedfacebookexperimental/Recoil

started time in 11 days

startedredwoodjs/redwood

started time in 11 days

issue commentjshor/datebook

Support NodeJS generation

I'll try that soon, thanks @jshor.

I'll send some mails with calendar links and ics

ScreamZ

comment created time in 12 days

issue commentTrilonIO/zeit-now-nestjs

Live deployment is dead

@Yokutto I managed to make this repository works with 19.0.1 but I cannot make my own app work…

Yokutto

comment created time in 13 days

issue commentTrilonIO/zeit-now-nestjs

Live deployment is dead

Looks like a vercel breaking change, I just reported the issue @kamilmysliwiec maybe you have some ideas, I'll keep in touch when I get more informations

Yokutto

comment created time in 14 days

delete branch ScreamZ/docs.nestjs.com

delete branch : patch-1

delete time in 15 days

pull request commentnestjs/docs.nestjs.com

Improve lifecycle's documentation

@johnbiundo

Applied, good job mate :)

Feel free to merge squash :)

See you soon :)

ScreamZ

comment created time in 16 days

push eventScreamZ/docs.nestjs.com

Andréas Hanss

commit sha d7a3e8757a20d85286fa8e77a36bf272fd26c402

Apply suggestions from code review Co-authored-by: John Biundo <johnbiundo@users.noreply.github.com>

view details

push time in 16 days

issue commentmixmaxhq/mongo-cursor-pagination

[Feature Proposal] Compute cursor for each document

Also is there any way to get the total count instead of HasNext ? I can mimic that by running countDocuments with the query before the Mongo query but maybe you have another suggestion ? :)

simararneja

comment created time in 16 days

issue commentmixmaxhq/mongo-cursor-pagination

[Feature Proposal] Compute cursor for each document

Also interest in, relay is driving pagination spec for graphql, a lot of service take it as "best practice"

simararneja

comment created time in 16 days

pull request commentnestjs/docs.nestjs.com

Improve lifecycle's documentation

@johnbiundo Sound good now, I let you check, just rebased etc…

One small question about the repo? There is no hot reload feature while changing markdown content, is it normal?

Have a nice day

ScreamZ

comment created time in 16 days

push eventScreamZ/docs.nestjs.com

Andréas Hanss

commit sha bdd533a4b55368ba3b797f279f89a8802cd104f5

Update documentation for lifecycles hooks. Describing the context around shutdown hooks and explain that it must be opt-in to work.

view details

push time in 16 days

push eventScreamZ/docs.nestjs.com

Andréas Hanss

commit sha c6f0d6fe5a400102aa4883f4872cdf61f8ef7109

Update lifecycle-events.md

view details

push time in 16 days

startedUrigo/tortilla

started time in 17 days

pull request commentnestjs/docs.nestjs.com

Improve lifecycle's documentation

Thanks for feedback John, Sounds good to me, but we should maybe add a * (asterisk) to the events in the table with something like as reference:

* For those events, you must opt-in to make them work: see `Shutdown application` section below.

Because if you don't read the full page, you might be surprised that they are not enabled by default, and it's not that expensive in terms of characters adding :p And then we can add what you wrote in the end ?

Sound good? I can edit the PR that way if you agree @johnbiundo

ScreamZ

comment created time in 18 days

startednrwl/nx

started time in 19 days

PR opened nestjs/docs.nestjs.com

Improve lifecycle's documentation

PR Type

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ x ] Documentation improvement

Does this PR introduce a breaking change?

[ ] Yes
[ x ] No

I just added a small paragraph to show that those hooks won't be called as long you are not registering hooks. I had to try on my own because it was not explicit enough at the beginning for me 😅

+2 -0

0 comment

1 changed file

pr created time in 20 days

push eventScreamZ/docs.nestjs.com

Andréas Hanss

commit sha 88cdea37c98473f34e962727eacb7df847686ca5

Update lifecycle-events.md I just added a small paragraph to show that those hooks won't be called as long you are not registering hooks. I had to try on my own because it was not explicit enough at the beginning for me 😅

view details

push time in 20 days

fork ScreamZ/docs.nestjs.com

The official documentation https://docs.nestjs.com 📕

fork in 20 days

issue commentAutomattic/mongoose

How to set a timeout for idle open connections

@diaswrd Do you have some way to play with that in 2020? Does function end send a SIGTERM or something like this ?

diaswrd

comment created time in 20 days

issue commentzeit/now

Storing complex secrets

See also https://github.com/kuzzleio/kuzzle-vault

jberglinds

comment created time in 20 days

issue commentmicrosoft/TypeScript

No auto-completion on typescript interface with classes implement

Hello all, any news on that? I'm experiencing it using NestJS CustomScalar interface… Get complicated 😅

ScreamZ

comment created time in 21 days

pull request commentagenda/agenda

adds (optional) automatic retries with exponential backoff to jobs

+1

@simison @OmgImAlexis @rschmukler

Guys could you at least give some vision about such feature implementation or confirm the pattern ?

Thanks a lot and stay safe :)

Thank you @jhilden Using code copied from the PR as a workaround while waiting for the PR to merge:

import * as agenda from 'agenda';
import * as moment from 'moment';

const maxRetries = 5;

const agenda = new Agenda();
agenda.define('MyJob', (job, done) => {...});
agenda.on('fail:MyJob', onJobFailure);

async function onJobFailure(error: any, job: Agenda.Job<any>) {
    const retryCount = job.attrs.failCount - 1;
    if (retryCount <= maxRetries) {
        job.attrs.nextRunAt = calcExponentialBackoff(retryCount);;
        await job.save();
    }
}

function calcExponentialBackoff(retryCount: number): Date {
    const waitInSeconds = Math.pow(retryCount, 4) + 15 + Math.random() * 30 * (retryCount + 1);
    return moment()
        .add(waitInSeconds, 'seconds')
        .toDate();
}
jhilden

comment created time in 24 days

pull request commentenniel/graphql-geojson-scalar-types

meaningful errors

@enniel Could you merge and redeploy please ? Thanks

meniRoy

comment created time in 24 days

startedtypegoose/typegoose

started time in a month

startedmixmaxhq/mongo-cursor-pagination

started time in a month

startedKevinAst/feature-u

started time in a month

startedastrit/css.gg

started time in a month

created repositoryScreamZ/gatsby-starter-netlify-cms

created time in a month

startedianstormtaylor/slate

started time in a month

startedrainyrainyday/HomebrewOverlay

started time in a month

startedRepairShopr/react-native-signature-capture

started time in a month

startedterrylinla/react-native-sketch-canvas

started time in a month

startedwebtorrent/instant.io

started time in a month

startedianramzy/decentralized-video-chat

started time in a month

startedaniftyco/awesome-tailwindcss

started time in a month

startedHopding/react-native-pdf-lib

started time in 2 months

issue openeddeepstreamIO/deepstream.io

Cluster mode

@yasserf Hey,

It's been at least two years that I haven't come here, but I'll need some realtime features provided by deepstream soon :)

I apologize If I missed something, but I wanted to know if you open-sourced the "private" homemade cluster plugin that was supposed to replace the Redis connector at the Deepstreamhub time, otherwise, what do you recommend for clustering in 2020? https://github.com/wehriam/deepstream.io-cluster ?

Thanks

created time in 2 months

issue commentdeepstreamIO/deepstream.io

Future of deepstream / Contributor Callout

I think deepstream main pro is that it's free, easy and simple to implements.

While cloud firestore is a bit expensive when having a custom chat app and where kuzzle is a bit big to just implement real-time usage

keep it going bro :)

yasserf

comment created time in 2 months

startedfiction-com/factor

started time in 2 months

issue openedNozbe/WatermelonDB

Flipper support

Hey, I would like to add Flipper support and I followed this tutorial:

https://fbflipper.com/docs/setup/databases-plugin.html

But I need the database path, could you help me? Thanks

created time in 2 months

issue commentPolidea/react-native-ble-plx

Build failed on RN v0.61.5

Same issue here, I just spotted it after migrating to 0.62.0

chandrasekarvogo

comment created time in 2 months

issue openedanton-bot/objects-to-csv

Allow use in react native and browser

Hey, can you conditionally import fs module, to allow usage in a browser and react native, I don't need toFile method :)

Thanks

created time in 2 months

startedHelloQingGuo/react-vivus

started time in 2 months

startedFormidableLabs/victory-native

started time in 2 months

startedFormidableLabs/victory

started time in 2 months

startedkuzzleio/kuzzle-vault

started time in 2 months

startedmdx-js/mdx

started time in 2 months

startedvadimdemedes/tailwind-rn

started time in 2 months

startedFullHuman/purgecss

started time in 2 months

startedstaltz/manyverse

started time in 2 months

startedlucasferreira/react-native-flash-message

started time in 2 months

issue commentindiespirit/react-native-chart-kit

Exception thrown while executing UI block

+1 for contributors, react-native-svg was the issue

art1232

comment created time in 2 months

fork ScreamZ/react-native-chart-kit

📊React Native Chart Kit: Line Chart, Bezier Line Chart, Progress Ring, Bar chart, Pie chart, Contribution graph (heatmap)

https://expo.io/@indiespirit/react-native-chart-kit

fork in 2 months

startedDylanVann/react-native-fast-image

started time in 2 months

startedjondot/react-native-slowlog

started time in 3 months

more