https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • i

    Isaac Lee Morris

    09/21/2017, 7:40 AM
    PSA - you can use async/await in schema extensions with babel-polyfill
    šŸŽ‰ 1
    šŸ‘ 1
    šŸ™ 1
    šŸ™šŸ» 2
    a
    m
    • 3
    • 2
  • i

    Isaac Lee Morris

    09/21/2017, 7:40 AM
    Copy code
    "use latest";
    
    require("babel-polyfill");
    const { fromEvent } = require("graphcool-lib");
    
    module.exports = async event => {
        const api = fromEvent(event).api("simple/v1");
        const query = `
            query {
                allDataSources {
                    id
                }
            }
        `;
    
        const result = await api.request(query);
        const { allDataSources } = result;
    
        return {
            data: {
                dataSourceIds: allDataSources.map(dataSource => dataSource.id)
            }
        };
    };
  • h

    halborg

    09/21/2017, 7:47 AM
    Anyone having this issue?
  • n

    nilan

    09/21/2017, 7:48 AM
    we're looking into it @halborg https://twitter.com/GraphcoolStatus/status/910752705647464448
    šŸŽ‰ 1
  • h

    halborg

    09/21/2017, 7:48 AM
    Of course you are šŸ™‚ I was never worried šŸ˜‰
    šŸ˜„ 2
    n
    • 2
    • 1
  • h

    halborg

    09/21/2017, 7:49 AM
    Nilan-as-a-service
    graphcool 1
    🦜 3
  • n

    nilan

    09/21/2017, 7:50 AM
    note that the APIs and the Console are unaffected, so https://console.graph.cool works
    šŸ‘ 2
  • i

    Isaac Lee Morris

    09/21/2017, 8:06 AM
    Is there a way to add relational data in the console?
  • i

    Isaac Lee Morris

    09/21/2017, 8:06 AM
    I've got a Parent who has many Children
  • i

    Isaac Lee Morris

    09/21/2017, 8:06 AM
    I've created the parent, but when I try to create the child, it says "Should be added later" on the "parent" field
  • i

    Isaac Lee Morris

    09/21/2017, 8:07 AM
    If I submit, I get the mutation error for that field being empty
    d
    • 2
    • 4
  • k

    kyriakosmichael

    09/21/2017, 8:09 AM
    I also had the Home Page error.
    n
    • 2
    • 1
  • l

    LeiZeng

    09/21/2017, 10:07 AM
    @antho1404 I understand but just take look at the difference of the hash files and name conventions.
  • n

    nilan

    09/21/2017, 10:18 AM
    The Forum and Homepage are available again: https://status.graph.cool/. Thanks for your patience!
    šŸŽ‰ 2
  • f

    freddie-codogo

    09/21/2017, 10:33 AM
    anyone else getting a
    Cannot find module './CLI'
    error using the most up-to-date version of the graphcool CLI?
    n
    m
    • 3
    • 2
  • s

    slackday

    09/21/2017, 11:18 AM
    Hello, I can’t login to the forums today using my github account. Is it just me or anyone else having this problem?
    a
    a
    +4
    • 7
    • 31
  • j

    joar

    09/21/2017, 1:19 PM
    Running ā€œexport dataā€ seems to result in ā€œfailed to fetchā€
    n
    n
    • 3
    • 8
  • m

    mplis

    09/21/2017, 2:28 PM
    is there any difference between passing a single object with multiple fields to
    filter
    vs passing an array of objects with single fields to
    filter.AND
    ?
  • m

    mplis

    09/21/2017, 2:30 PM
    basically, is
    query1
    the same as
    query2
    ?
    -.js
  • j

    joar

    09/21/2017, 2:37 PM
    Getting a fair amount of 504's right now
    n
    t
    i
    • 4
    • 7
  • n

    notrab

    09/21/2017, 3:11 PM
    Posted an update on
    graphcool-cli
    error. Be great if anyone here could help duplicate this and report back. https://github.com/graphcool/graphcool/issues/551#issuecomment-331177758
  • n

    notrab

    09/21/2017, 3:12 PM
    Related to https://github.com/graphcool/graphcool-cli/issues/255
  • s

    stephenhandley

    09/21/2017, 3:28 PM
    I'm looking into the new CLI module system, specifically https://github.com/graphcool/modules/tree/master/authentication/email-password, and had a couple questions: 1) should code in modules be modified by the end user? 2) In the email-password module, an
    EmailUser
    type is created, I'm assuming this is in lieu of a
    User
    type? If so, what are the best practices for adding additional fields to that type?
    n
    • 2
    • 5
  • w

    wesbos

    09/21/2017, 3:43 PM
    Hey @nilan or others - I’ve got a schema where the User has a field called Cart which is a relationship of [Item] - how do I order those items? It seems they don’t order by when I push them in - but by the item creation date
    n
    • 2
    • 3
  • w

    wesbos

    09/21/2017, 3:43 PM
    http://wes.io/mfSo
  • w

    wesbos

    09/21/2017, 3:45 PM
    This is my mutation
    Copy code
    export const ADD_TO_CART_MUTATION = gql`
      mutation AddToCart($userId: ID!, $itemId: ID!) {
        addToCartItems(userUserId: $userId, cartItemId: $itemId) {
          cartItem {
            id
            title
            price
          }
        }
      }
    `;
  • l

    Lockevn

    09/21/2017, 3:56 PM
    Hi, I'm using Chromeless. How can I get the underlying driver (so I can catch the network activities, to catch XHR, Images, CSS, ...)?
  • w

    wesbos

    09/21/2017, 4:00 PM
    @nilan Here it says you can use the float type - what does that mean? https://www.graph.cool/forum/t/insert-object-in-a-relation-at-given-index/860/2
    n
    n
    • 3
    • 26
  • i

    Isaac Lee Morris

    09/21/2017, 4:06 PM
    Where can I find info on piping logs to the CLI?
    a
    n
    • 3
    • 33
  • m

    mwickett

    09/21/2017, 5:28 PM
    I searched the forum, but can’t find a similar question. Is there a way to ā€˜de-duplicate’ query / subscription results? I’m doing a fairly complex query, with some filters on relationships, and because of the relationships, I get back a repeated piece of data – can I only get the first one back? (I have a feeling this isn’t possible, but…)
    n
    a
    • 3
    • 4
1...346347348...637Latest