Skip to content

Commit ff05794

Browse files
committed
updated with apollo config
1 parent d956e91 commit ff05794

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

apollo.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
client: {
3+
service: {
4+
name: 'now playing app',
5+
url: 'http://localhost:4000/graphql',
6+
},
7+
includes: ['./app/src/**/graphql.ts'], // array of glob patterns
8+
excludes: ['./app/**/src/generated/**'],
9+
},
10+
};

app/src/pages/NowPlaying.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const NowPlaying = () => {
1414
return (
1515
<Carousel title="Now Playing">
1616
{movies.map((movie) => (
17-
// TODO: fix this type
1817
<MoviePoster movie={movie} key={movie.id} />
1918
))}
2019
</Carousel>

app/src/pages/graphql.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { gql } from '@apollo/client';
22

3-
// TODO: create fragment
3+
// TODO: create fragment for movie object
44

55
export const NOW_PLAYING = gql`
66
query nowPlaying {

0 commit comments

Comments
 (0)