MCPcopy Create free account
hub / github.com/Netflix/dgs-examples-java / App

Function App

ui-example/src/index.tsx:49–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47});
48
49const App: React.FC = () => {
50 const {loading, error, data} = useQuery(gql`
51 {
52 shows {
53 title
54 }
55 }`);
56
57 return loading ?
58 <div>Loading...</div>
59 : error ? <div>{error}</div>
60 : <div>
61 <h1>Movies</h1>
62 <table>
63 <tr>
64 <th>Title</th>
65 </tr>
66 {data.shows.map((show: Show) => {
67 return <tr>
68 <td>{show.title}</td>
69 </tr>
70 })}
71 </table>
72
73 <h1>Subscriptions</h1>
74 <SubscriptionPanel/>
75 </div>
76}
77
78type Show = {
79 title: String

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected