这是indexloc提供的服务,不要输入任何密码
Skip to content

Allow json2graphql db.js to export a function to do async stuff inside #1488

@dariocravero

Description

@dariocravero

Hi,

I needed to do some async operations before creating the DB, so I've added the ability to export a function in json2graphql as well as an object, so we can await on it.

dariocravero@3f2ec33

Is that something that would be of interest?

I was going to open a PR but the template suggested I opened an issue first, so here it is :).

Cheers!
Darío

Metadata

Metadata

Assignees

No one assigned

    Labels

    k/enhancementNew feature or improve an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions