javascript Usando导出没有javascript para organizar o codigo graphql

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Usando导出没有javascript para organizar o codigo graphql相关的知识,希望对你有一定的参考价值。

const users = [{
    id: '1',
    name: 'Andrew',
    email: 'andrew@example.com',
    age: 27
}, {
    id: '2',
    name: 'Sarah',
    email: 'sarah@example.com'
}, {
    id: '3',
    name: 'Mike',
    email: 'mike@example.com'
}]

const posts = [{
    id: '10',
    title: 'GraphQL 101',
    body: 'This is how to use GraphQL...',
    published: true,
    author: '1'
}, {
    id: '11',
    title: 'GraphQL 201',
    body: 'This is an advanced GraphQL post...',
    published: false,
    author: '1'
}, {
    id: '12',
    title: 'Programming Music',
    body: '',
    published: true,
    author: '2'
}]

const comments = [{
    id: '102',
    text: 'This worked well for me. Thanks!',
    author: '3',
    post: '10'
}, {
    id: '103',
    text: 'Glad you enjoyed it.',
    author: '1',
    post: '10'
}, {
    id: '104',
    text: 'This did no work.',
    author: '2',
    post: '11'
}, {
    id: '105',
    text: 'Nevermind. I got it to work.',
    author: '1',
    post: '12'
}]

const db = {
    users,
    posts,
    comments
}

export { db as default }

以上是关于javascript Usando导出没有javascript para organizar o codigo graphql的主要内容,如果未能解决你的问题,请参考以下文章

javascript usando webpack velho

javascript Usando内存缓存com apolo客户端反应

json Ejemplodeduoluolucióndeun pago usando el SDK para Java de MercadoPago

markdown Usando Zoom no manjaro.md

python 示例处理程序usando o modulo subprocess

python 示例处理程序usando o modulo subprocess