diff --git a/data/schema/flickr-type/flickrPandaType.js b/data/schema/flickr-type/flickrPandaType.js index 69f14c0..48cea83 100644 --- a/data/schema/flickr-type/flickrPandaType.js +++ b/data/schema/flickr-type/flickrPandaType.js @@ -16,8 +16,8 @@ const flickrPandaType = module.exports = new GraphQLObjectType({ _content: {type: GraphQLString}, photos: {type: new GraphQLList(flickrPhotoType), args:{ - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10} + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10} }, resolve:({_content},args) => getPandaPhotos(_content,args)} }) diff --git a/data/schema/flickr-type/flickrPersonType.js b/data/schema/flickr-type/flickrPersonType.js index fedd2e8..0a43906 100644 --- a/data/schema/flickr-type/flickrPersonType.js +++ b/data/schema/flickr-type/flickrPersonType.js @@ -21,16 +21,16 @@ const flickrPersonType = module.exports = new GraphQLObjectType({ popular: {type:new GraphQLList(flickrPhotoType), description:'Returns a list of popular photos of a given user', args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}, - sort: {type:GraphQLString, defaultvalue:"interesting"}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}, + sort: {type:GraphQLString, defaultValue:"interesting"}}, resolve:({nsid},args) => flickrAPI(endpoint="photos.getPopular",addon={"user_id":nsid},args=args,resolveName='popular')}, photoset: {type:new GraphQLList(flickrPhotosetType), description:'Returns the photosets belonging to the specified user.', args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({nsid},args) => flickrAPI(endpoint="photosets.getList",addon={"user_id":nsid},args=args,resolveName='photoset')}, profile: {type: flickrProfileType, @@ -46,15 +46,15 @@ const flickrPersonType = module.exports = new GraphQLObjectType({ photos: {type:new GraphQLList(flickrPhotoType), description:'Get a list of public photos for the given user.', args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({nsid},args) => flickrAPI(endpoint="people.getPublicPhotos",addon={"user_id":nsid},args=args,resolveName='photo')}, photosOf: {type:new GraphQLList(flickrPhotoType), description:'Returns a list of photos containing a particular Flickr member.', args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({nsid},args) => flickrAPI(endpoint="people.getPhotosOf",addon={"user_id":nsid},args=args,resolveName='photoOf')}, collectionTree: {type: new GraphQLList(flickrSetType), @@ -63,21 +63,21 @@ const flickrPersonType = module.exports = new GraphQLObjectType({ contacts: {type: new GraphQLList(flickrPersonType), args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({nsid},args) => flickrAPI(endpoint="contacts.getPublicList",addon={"user_id":nsid},args=args,resolveName='contact')}, favoritePhotos: {type: new GraphQLList(flickrPhotoType), args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({nsid},args) => flickrAPI(endpoint="favorites.getPublicList",addon={"user_id":nsid},args=args,resolveName='favoritePhotos')}, gallaries: {type: new GraphQLList(flickrGalleryType), description:'Return the list of galleries created by a user. Sorted from newest to oldest.', args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({nsid},args) => flickrAPI(endpoint="galleries.getList",addon={"user_id":nsid},args=args,resolveName='gallery')}, tags: {type: new GraphQLList(flickrTagType), diff --git a/data/schema/flickr-type/flickrPhotoType.js b/data/schema/flickr-type/flickrPhotoType.js index 2882ea4..6a591fd 100644 --- a/data/schema/flickr-type/flickrPhotoType.js +++ b/data/schema/flickr-type/flickrPhotoType.js @@ -63,8 +63,8 @@ const flickrPhotoType = module.exports = new GraphQLObjectType({ galleriesOf: {type: new GraphQLList(flickrGalleryType), description:'Return the list of galleries to which a photo has been added. Galleries are returned sorted by date which the photo was added to the gallery.', args: { - page: {type:GraphQLInt, defaultvalue:1}, - per_page: {type:GraphQLInt, defaultvalue:10}}, + page: {type:GraphQLInt, defaultValue:1}, + per_page: {type:GraphQLInt, defaultValue:10}}, resolve: ({id},args) => flickrAPI(endpoint = "galleries.getListForPhoto", addon = {"photo_id":id}, args = args,resolveName='galleriesOf')}, }) });