Coder Social home page Coder Social logo

Comments (10)

PaulLeCam avatar PaulLeCam commented on September 23, 2024 1

Thanks @morozj01, I left some comments on your PR.

from js-composedb.

morozj01 avatar morozj01 commented on September 23, 2024

@PaulLeCam

It seems like @composedb/graphql-scalars is implemented as a simple pass through of the scalar types defined in the graphql-scalars package.

The PR you referenced is fixing an issue in the serialize function of the datetime scalar which that package is exporting

I could implement a custom definition for the datetime scalar type (to use temporarily in place of the one being exported by graphql-scalars) but that may be overkill for a package which is currently very simple - especially with a PR pending with a fix.

Happy to work on a temporary solution but wanted to get your feedback before proceeding.

from js-composedb.

stbrody avatar stbrody commented on September 23, 2024

Shouldn't dates get converted into number types, or ideally to native date objects in the underlying db, so that range queries can work effectively?

from js-composedb.

stbrody avatar stbrody commented on September 23, 2024

I guess the problem is that JSON doesn't have a native encoding for dates. Sigh, this was one of the reasons that MongoDB's BSON added extra types beyond the base supported in JSON. We might want to consider defining a JSON-compatible serialization format for dates so that Ceramic nodes can actually treat dates like dates

from js-composedb.

morozj01 avatar morozj01 commented on September 23, 2024

Exactly - ceramic is importing a library which is supposed to serialize dates into strings already but there is a bug where it is not being done.

They have a PR open with a potential fix but it has been inactive for a while

#54
This could be a temporary solution if you think it's not worth waiting for them to merge that PR
@stbrody @PaulLeCam

from js-composedb.

ashutosh887 avatar ashutosh887 commented on September 23, 2024

@PaulLeCam I would like to continue working on it if needed

from js-composedb.

PaulLeCam avatar PaulLeCam commented on September 23, 2024

@ashutosh887 thanks but this has already been fixed in the mentioned PR, the latest version of ComposeDB packages have the fix.

from js-composedb.

ashutosh887 avatar ashutosh887 commented on September 23, 2024

I'm willing to contribtute to the ecosystem @PaulLeCam
Please let me know if there are any other issues I could pick

from js-composedb.

PaulLeCam avatar PaulLeCam commented on September 23, 2024

Thanks, there are some issues labelled as "good first issue" in the Ceramic repository: https://github.com/ceramicnetwork/js-ceramic/labels/good%20first%20issue

from js-composedb.

ashutosh887 avatar ashutosh887 commented on September 23, 2024

Just saw... @PaulLeCam
They look quite old... I'll check if they're already resolved

from js-composedb.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.