►
From YouTube: Create GraphQL APIs in a declarative way
Description
No description was provided for this meeting.
If this is YOUR meeting, an easy way to fix this is to add a description to your video, wherever mtngs.io found it (probably YouTube).
A
A
The
idea
here
is
to
Define,
as
code
declaratively,
how
to
resolve
these
different
fields.
How
do
we
get
this
product
and
review
and
some
on
some
other
graphql
Solutions,
so
that
they
allow
you
to
write
some
JavaScript
code
or
other
language
to
Define
how
to
get
this
data,
which
is
very
powerful
but
very
complicated?
To
maintain
here?
It's
fully
declarative
and
we
Leverage
The
jQuery
capability
to
make
some
Advanced
transformation
on
the
data
that
we
receive.
A
Here
we
say
when
we
have
this
query
products
for
home.
We
are
sending
a
request
to
the
product
page
service,
using
this
path
and
to
be
able
to
get
to
the
products
Fields
like
in
the
reviews
field.
For
example,
we
get
the
parent
ID
that
we
received
here
and
we
send
a
request,
for
example,
the
review
service
with
this
ID.
A
When
we
get
a
response,
we
take
the
reviews,
part
of
the
response
and
that's
a
very
simple
transformation,
but,
for
example,
in
the
ratings
we
do
much
more.
You
can
see
right
here.
We
send
a
request
to
the
rating
service
and
we
really
do
get
a
nice
Advanced
JQ
transformation
to
get
that
data
in
the
format.
That
makes
sense.
A
So
you
can
use
the
graphql
tool
after
that
to
validate
that
everything
is
working,
but
you
can
also
use
Curl
and
provide
your
query
that
way.
So
what
I
want
to
do
is
query
my
graphql
API
for
the
products
for
home
and
then
I
want
this
and
the
format
of
graphql.
This
is
the
beauty
of
graphql.
You
can
tell
what
you
want
to
get
back
here.
I
want
to
get
the
title
and
rating
for
each
service
and
I
also
want
to
get
the
number
of
stars
for
these
Services
as
well.
A
So
I
can
copy
this
and
execute
that
command,
and
you
can
see
the
response
we
get
back
as
we
expected.
You
can
even
do
this
through
the
UI.
For
that
you
need
to
create
a
course
policy
so
that
the
UI
is
allowed
to
send
this
request,
even
if
the
URL
is
going
to
be
different
because
we
have
opened
the
UI
with
port
forwarding.
A
We
are
not
going
to
send
that
to
this
endpoint
here,
but
to
the
same
one
that
we
use
when
we
want
to
access
the
HTTP
bin
application,
for
example,
so
that
should
be
similar
to
this
one.
But
this
time
it's
with
this
graphql
endpoint,
as
you
can
see
so
I
can
just
get
this
set
and
then
I
can
take
my
query,
which
is
this
products
for
home
query,
which
you
see
right
here.