graphql-iso-date icon indicating copy to clipboard operation
graphql-iso-date copied to clipboard

GraphQL 15 support

Open Pompedup opened this issue 3 years ago • 14 comments

I just begin a tutorial with graphql that use your lib, they use [email protected] so I had to do npm i -force to install your lib since you don't allow GraphQL 15, is there a reason or will that be possible soon ?

Pompedup avatar Mar 21 '21 17:03 Pompedup

Could you link the tutorial?

Urigo avatar Mar 24 '21 11:03 Urigo

https://github.com/prisma/prisma-examples/tree/latest/typescript/graphql

Pompedup avatar Mar 24 '21 11:03 Pompedup

Same here, I get this warning:

... with version 15.5.0, which doesn't satisfy what graphql-iso-date requests

josueadelima avatar Mar 26 '21 08:03 josueadelima

@Pompedup @josueadelima check out this commit and the comment at the top of the repo here:

The scalars defined in this repository have moved to the [GraphQL-scalars](https://www.graphql-scalars.dev) repository where they will be maintained.

Do you think that you would help report and update the tutorial to use the updated repo?

Urigo avatar Mar 26 '21 08:03 Urigo

@excitement-engineer this is still a problem

peacechen avatar Jun 10 '21 16:06 peacechen

Just a bump. Support for GraphQL 15 would be great.

SMEETT avatar Jun 17 '21 13:06 SMEETT

I am encountering these problems too and seens to me the library is discontinued.

If the project owner does not object, I will create a new version of this lib using this as a base, but already with graphql 15 support

jhomarolo avatar Aug 02 '21 17:08 jhomarolo

@jhomarolo why not use graphql-scalars many date related scalars?

Urigo avatar Aug 02 '21 21:08 Urigo

I just used a "GraphQLString" in the end to handle ISODate (while using a "DataTypes.DATE" in Sequelize) - this combination gives me all I need. Maybe that helps someone.

SMEETT avatar Aug 03 '21 09:08 SMEETT

@jhomarolo why not use graphql-scalars many date related scalars?

There's actually a potential difference of behavior between SSR and CSR when using that: https://github.com/Urigo/graphql-scalars/discussions/957

jlowcs avatar Dec 01 '21 23:12 jlowcs

Same goes for 16.3.0.

otwm avatar Jan 30 '22 01:01 otwm

Issues with typescript

Type '{ type: GraphQLScalarType; }' is not assignable to type 'GraphQLFieldConfig<any, any, any>'. Types of property 'type' are incompatible. Type 'GraphQLScalarType' is not assignable to type 'GraphQLOutputType'.

bahachammakhi avatar Feb 10 '22 10:02 bahachammakhi

Any update? This is a blocker for me.

geosigno avatar Feb 23 '22 15:02 geosigno

@geosigno move to https://github.com/Urigo/graphql-scalars. This project is discontinued according to the readme.

dremonkey avatar Mar 08 '22 00:03 dremonkey