aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

Custom scalar types

Open bboure opened this issue 5 years ago • 45 comments

AppSync comes with the default GraphQL scalar types and with some handy additional AWS types. It would be nice, however, to be able to add custom scalar types as well.

bboure avatar May 22 '19 11:05 bboure

Thank you for your comment. This feature request is in the backlog but I have noted this feedback for prioritization.

mikeparisstuff avatar May 22 '19 20:05 mikeparisstuff

This feature was developed?

vvenegasv avatar Jan 21 '20 15:01 vvenegasv

@mikeparisstuff kindly, is there some sort of ballpark eta on this feature?

klyondx avatar Feb 04 '20 17:02 klyondx

Is there an update on this feature request?

CorbinAmmanBF avatar May 13 '20 04:05 CorbinAmmanBF

Is their an update on this?

Cliftonz avatar Aug 12 '20 06:08 Cliftonz

+1 for this :)

th3m477 avatar Oct 27 '20 20:10 th3m477

Any update?

MontoyaAndres avatar Nov 09 '20 01:11 MontoyaAndres

I'm here. Any update?

Danue1 avatar Jan 12 '21 02:01 Danue1

Is there any update on this issue? Is it still prioritised? Would very much like to have custom scalar types.

tglastra avatar Apr 02 '21 15:04 tglastra

Any update on this feature ?

jcvargasGit avatar Oct 28 '21 04:10 jcvargasGit

I would be a fan of this feature as well!

ben-elsen avatar Nov 24 '21 08:11 ben-elsen

3 years and still nothing done for this?

zerubeus avatar Nov 27 '21 16:11 zerubeus

Yes please

joekendal avatar Dec 04 '21 13:12 joekendal

+1

fes300 avatar Jan 28 '22 09:01 fes300

+1 ??

mirrorshades avatar Feb 16 '22 22:02 mirrorshades

+1

samjett247 avatar Mar 10 '22 19:03 samjett247

Or at least rename AWSTimestamp, AWSDateTime etc. to Timestamp, DateTime. Revealing the cloud provider for customers is a potential security problem for that company.

joekendal avatar Mar 10 '22 19:03 joekendal

This feature would make a difference for us. It would improve expressiveness of the schema, and on the other hand it would allow us to map the custom scalar type from the schema to the strongly typed module in the app. For example, we'd like to have a CurrencyAmount type that serializes to a String, but it is not the same to see:

... on Product {
  price: CurrencyAmount!
}

and

... on Product {
  price: String!
}

Imagine now we set up our tooling to convert CurrencyAmount to whatever type would make our life easier in the app, certainly not a string.

vknez avatar Mar 15 '22 09:03 vknez

This feature would make a difference for us. It would improve expressiveness of the schema, and on the other hand it would allow us to map the custom scalar type from the schema to the strongly typed module in the app. For example, we'd like to have a CurrencyAmount type that serializes to a String, but it is not the same to see:

... on Product {
  price: CurrencyAmount!
}

and

... on Product {
  price: String!
}

Imagine now we set up our tooling to convert CurrencyAmount to whatever type would make our life easier in the app, certainly not a string.

I strongly agree with you. If we could match a custom scalar with a particular regex in order to efficiently check the validity of a given value, that would be great.

Cwellan avatar Mar 15 '22 09:03 Cwellan

We definitely need this feature; it actually is a blocker for us, when trying to adopt AppSync in our current architecture.

irimiab avatar Mar 31 '22 07:03 irimiab

Custom scalars aside, I think at least adding support for graphql-scalars would probably make most of us happy.

https://www.graphql-scalars.dev/docs

ottosipe avatar Apr 01 '22 17:04 ottosipe

+1

younesea avatar May 18 '22 11:05 younesea

As @ottosipe mentioned, support for graphql-scalars is a must for adoption of projects I'm involved in. We have String data types that need to conform with specific rules and require that validation provided with that above package.

Not confident of traction with this feature though having been opened over 3 years ago...

byrne-greg avatar Jun 22 '22 10:06 byrne-greg

+1

Jrodna avatar Aug 03 '22 06:08 Jrodna

+1

diegoNutmeg avatar Aug 12 '22 12:08 diegoNutmeg

+1

biggytech avatar Sep 08 '22 12:09 biggytech

+1

c-kle avatar Sep 30 '22 12:09 c-kle

+1

neaumusic avatar Oct 17 '22 03:10 neaumusic

+1, lack of custom scalars is a huge blocker for AppSync adoption for us, the whole purpose of GraphQL is expressive type system. We have a "no String" policy in our schema.

leehambley avatar Nov 07 '22 10:11 leehambley

+1

veerendrapatel avatar Dec 22 '22 14:12 veerendrapatel