retrofit-graphql
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
retrofit-graphql
serialization-kotlinx
/
co.anitrend.retrofit.graphql.serialization.kotlinx
/
KotlinxGraphQLTransportCodecTest
Kotlinx
Graph
QLTransport
Codec
Test
class
KotlinxGraphQLTransportCodecTest
Members
Constructors
Kotlinx
Graph
QLTransport
Codec
Test
Link copied to clipboard
constructor
(
)
Types
Get
Current
User
Data
Link copied to clipboard
@
Serializable
data
class
GetCurrentUserData
(
val
viewer
:
KotlinxGraphQLTransportCodecTest.GetCurrentUserData.Viewer
?
=
null
)
Get
User
Variables
Link copied to clipboard
@
Serializable
data
class
GetUserVariables
(
val
login
:
String
,
val
limit
:
Int
)
:
GraphQLVariables
Price
Data
Link copied to clipboard
@
Serializable
data
class
PriceData
(
val
price
:
String
,
val
items
:
List
<
KotlinxGraphQLTransportCodecTest.PriceData.Item
>
)
Functions
decode
Response
decodes
nested
data
values
Link copied to clipboard
fun
decodeResponse decodes nested data values
(
)
decode
Response
distinguishes
missing
data
from
explicit
data
null
Link copied to clipboard
fun
decodeResponse distinguishes missing data from explicit data null
(
)
decode
Response
fails
for
non-parameterized
response
types
Link copied to clipboard
fun
decodeResponse fails for non-parameterized response types
(
)
decode
Response
fails
on
invalid
path
shapes
Link copied to clipboard
fun
decodeResponse fails on invalid path shapes
(
)
decode
Response
fails
on
malformed
JSON
and
non-object
envelopes
Link copied to clipboard
fun
decodeResponse fails on malformed JSON and non-object envelopes
(
)
decode
Response
fails
when
an
error
message
is
missing
Link copied to clipboard
fun
decodeResponse fails when an error message is missing
(
)
decode
Response
fails
when
an
error
message
is
not
a
string
Link copied to clipboard
fun
decodeResponse fails when an error message is not a string
(
)
decode
Response
fails
when
extensions
are
not
objects
Link copied to clipboard
fun
decodeResponse fails when extensions are not objects
(
)
decode
Response
keeps
data
and
errors
together
Link copied to clipboard
fun
decodeResponse keeps data and errors together
(
)
decode
Response
parses
error
locations
Link copied to clipboard
fun
decodeResponse parses error locations
(
)
decode
Response
parses
mixed
field
and
index
path
segments
Link copied to clipboard
fun
decodeResponse parses mixed field and index path segments
(
)
decode
Response
preserves
Big
Decimal
precision
in
top-level
and
error
extensions
Link copied to clipboard
fun
decodeResponse preserves BigDecimal precision in top-level and error extensions
(
)
decode
Response
preserves
nested
parameterized
data
types
Link copied to clipboard
fun
decodeResponse preserves nested parameterized data types
(
)
decode
Response
treats
explicit
null
errors
and
extensions
as
absent
Link copied to clipboard
fun
decodeResponse treats explicit null errors and extensions as absent
(
)
decode
Response
treats
missing
errors
and
extensions
as
empty
or
absent
Link copied to clipboard
fun
decodeResponse treats missing errors and extensions as empty or absent
(
)
encode
Request
wraps
backend
failures
with
request
context
Link copied to clipboard
fun
encodeRequest wraps backend failures with request context
(
)
encode
Request
writes
explicit
nulls
for
absent
variables
and
extensions
Link copied to clipboard
fun
encodeRequest writes explicit nulls for absent variables and extensions
(
)
encode
Request
writes
the
neutral
envelope
with
typed
variables
and
extensions
Link copied to clipboard
fun
encodeRequest writes the neutral envelope with typed variables and extensions
(
)