Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf333c1e

Browse files
authored
refactor(ts-client): single pass encode (#807)
1 parentdbffec8 commitf333c1e

File tree

6 files changed

+356
-276
lines changed

6 files changed

+356
-276
lines changed

‎src/layers/3_SelectionSet/__snapshots__/encode.test.ts.snap

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,180 @@ exports[`args > Query 4`] = `
669669
"
670670
`;
671671

672+
exports[`args > custom scalars > Query > arg field 1`]=`
673+
"
674+
{
675+
"dateArg": {
676+
"$": {
677+
"date":"1970-01-01T00:00:00.000Z"
678+
}
679+
}
680+
}
681+
--------------
682+
{
683+
dateArg(date:"1970-01-01T00:00:00.000Z")
684+
}
685+
"
686+
`;
687+
688+
exports[`args > custom scalars > Query > arg field in list (null) 1`]=`
689+
"
690+
{
691+
"dateArgList": {
692+
"$": {
693+
"date":null
694+
}
695+
}
696+
}
697+
--------------
698+
{
699+
dateArgList(date:null)
700+
}
701+
"
702+
`;
703+
704+
exports[`args > custom scalars > Query > arg field in list 1`]=`
705+
"
706+
{
707+
"dateArgList": {
708+
"$": {
709+
"date": [
710+
"1970-01-01T00:00:00.000Z",
711+
"1970-01-01T00:00:00.001Z"
712+
]
713+
}
714+
}
715+
}
716+
--------------
717+
{
718+
dateArgList(date: ["1970-01-01T00:00:00.000Z","1970-01-01T00:00:00.001Z"])
719+
}
720+
"
721+
`;
722+
723+
exports[`args > custom scalars > Query > arg field in non-null 1`]=`
724+
"
725+
{
726+
"dateArgNonNull": {
727+
"$": {
728+
"date":"1970-01-01T00:00:00.000Z"
729+
}
730+
}
731+
}
732+
--------------
733+
{
734+
dateArgNonNull(date:"1970-01-01T00:00:00.000Z")
735+
}
736+
"
737+
`;
738+
739+
exports[`args > custom scalars > Query > arg field in non-null list (with list) 1`]=`
740+
"
741+
{
742+
"dateArgNonNullList": {
743+
"$": {
744+
"date": [
745+
"1970-01-01T00:00:00.000Z",
746+
"1970-01-01T00:00:00.001Z"
747+
]
748+
}
749+
}
750+
}
751+
--------------
752+
{
753+
dateArgNonNullList(
754+
date: ["1970-01-01T00:00:00.000Z","1970-01-01T00:00:00.001Z"]
755+
)
756+
}
757+
"
758+
`;
759+
760+
exports[`args > custom scalars > Query > arg field in non-null list (with null) 1`]=`
761+
"
762+
{
763+
"dateArgNonNullList": {
764+
"$": {
765+
"date": [
766+
null,
767+
"1970-01-01T00:00:00.000Z"
768+
]
769+
}
770+
}
771+
}
772+
--------------
773+
{
774+
dateArgNonNullList(date: [null,"1970-01-01T00:00:00.000Z"])
775+
}
776+
"
777+
`;
778+
779+
exports[`args > custom scalars > Query > arg field in non-null list non-null 1`]=`
780+
"
781+
{
782+
"dateArgNonNullListNonNull": {
783+
"$": {
784+
"date": [
785+
"1970-01-01T00:00:00.000Z",
786+
"1970-01-01T00:00:00.001Z"
787+
]
788+
}
789+
}
790+
}
791+
--------------
792+
{
793+
dateArgNonNullListNonNull(
794+
date: ["1970-01-01T00:00:00.000Z","1970-01-01T00:00:00.001Z"]
795+
)
796+
}
797+
"
798+
`;
799+
800+
exports[`args > custom scalars > Query > input object field 1`]=`
801+
"
802+
{
803+
"dateArgInputObject": {
804+
"$": {
805+
"input": {
806+
"idRequired":"",
807+
"dateRequired":"1970-01-01T00:00:00.000Z",
808+
"date":"1970-01-01T00:00:00.001Z"
809+
}
810+
}
811+
}
812+
}
813+
--------------
814+
{
815+
dateArgInputObject(
816+
input: {idRequired:"", dateRequired:"1970-01-01T00:00:00.000Z", date:"1970-01-01T00:00:00.001Z"}
817+
)
818+
}
819+
"
820+
`;
821+
822+
exports[`args > custom scalars > Query > nested input object field 1`]=`
823+
"
824+
{
825+
"InputObjectNested": {
826+
"$": {
827+
"input": {
828+
"InputObject": {
829+
"idRequired":"",
830+
"dateRequired":"1970-01-01T00:00:00.000Z",
831+
"date":"1970-01-01T00:00:00.001Z"
832+
}
833+
}
834+
}
835+
}
836+
}
837+
--------------
838+
{
839+
InputObjectNested(
840+
input: {InputObject: {idRequired:"", dateRequired:"1970-01-01T00:00:00.000Z", date:"1970-01-01T00:00:00.001Z"}}
841+
)
842+
}
843+
"
844+
`;
845+
672846
exports[`enum > Query 1`]=`
673847
"
674848
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp