Add files via upload

This commit is contained in:
Jaime Idolpx 2024-10-06 21:18:54 -05:00 committed by GitHub
parent c93d6c6653
commit b9c208c09a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,7 @@ const resolvers = {
Query: { Query: {
bbs: (parent, { id }, context, info) => getBBS(id), bbs: (parent, { id }, context, info) => getBBS(id),
bbss: (parent, { id }, context, info) => getBBSs(id),
}, },
Mutation: { Mutation: {

View File

@ -5,6 +5,7 @@ const resolvers = {
Query: { Query: {
event: (parent, { id }, context, info) => getEvent(id), event: (parent, { id }, context, info) => getEvent(id),
events: (parent, { id }, context, info) => getEvents(id),
}, },
Mutation: { Mutation: {

View File

@ -5,6 +5,7 @@ const resolvers = {
Query: { Query: {
group: (parent, { id }, context, info) => getGroup(id), group: (parent, { id }, context, info) => getGroup(id),
groups: (parent, { id }, context, info) => getGroups(id),
}, },
Mutation: { Mutation: {

View File

@ -5,7 +5,7 @@ const resolvers = {
Query: { Query: {
handle: (parent, { id }, context, info) => getHandle(id), handle: (parent, { id }, context, info) => getHandle(id),
handles: (parent, { ids }, context, info) => getHandles(ids), handles: (parent, { id }, context, info) => getHandles(id),
}, },
Mutation: { Mutation: {
@ -45,6 +45,7 @@ getHandle = id => {
return loadJSON(getHandleFile(id)); return loadJSON(getHandleFile(id));
} }
getHandles = idArray => { getHandles = idArray => {
console.log(idArray)
data = []; data = [];
try { try {
idArray.forEach( id => { idArray.forEach( id => {

View File

@ -5,6 +5,7 @@ const resolvers = {
Query: { Query: {
release: (parent, { id }, context, info) => getRelease(id), release: (parent, { id }, context, info) => getRelease(id),
releases: (parent, { id }, context, info) => getReleases(id),
}, },
Mutation: { Mutation: {

View File

@ -5,6 +5,7 @@ const resolvers = {
Query: { Query: {
scener: (parent, { id }, context, info) => getScener(id), scener: (parent, { id }, context, info) => getScener(id),
sceners: (parent, { id }, context, info) => getSceners(id),
}, },
Mutation: { Mutation: {

View File

@ -5,6 +5,7 @@ const resolvers = {
Query: { Query: {
sid: (parent, { id }, context, info) => getSID(id), sid: (parent, { id }, context, info) => getSID(id),
sids: (parent, { id }, context, info) => getSIDs(id),
}, },
Mutation: { Mutation: {