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

    jw

    11/15/2016, 12:23 PM
    great stuff thanks!
  • m

    monkeybonkey

    11/15/2016, 1:04 PM
    how are indexes handled? is it just on keys and foreign keys? for instance can I implement a geo-query?
  • m

    monkeybonkey

    11/15/2016, 1:04 PM
    e.g. posts near me
  • s

    sorenbs

    11/15/2016, 1:28 PM
    @monkeybonkey In general we manage indexes required to maintain performance of your queries. Additionally you will be able to enable specific indexes to enable extra functionality such as geo-queries. Geo datatypes is on our roadmap for December and we plan to enable the Algolia integration for full text search by the end of this month. Feel free to add your use case to the feature request list to help us prioritize the right features https://github.com/graphcool/feature-requests/projects/1
  • d

    dydycloud

    11/15/2016, 2:03 PM
    hi
  • d

    dydycloud

    11/15/2016, 2:04 PM
    i set up some relations between my models and since then i have error message about permission i'am using appolo-client
  • n

    nilan

    11/15/2016, 2:09 PM
    hey @dydycloud do you allow access to all fields? you can check that in the permissions page
  • d

    dydycloud

    11/15/2016, 2:10 PM
    i just re do that action and everuthing work but i have to do it twice
  • d

    dydycloud

    11/15/2016, 2:10 PM
    thank great reactivity there
  • n

    nilan

    11/15/2016, 2:10 PM
    you can select "Apply to whole model" to allow access to future fields automatically
  • d

    dydycloud

    11/15/2016, 2:19 PM
    first time i try manually but it failled, second time yes i use "Apply to whole model" .
  • d

    dydycloud

    11/15/2016, 2:20 PM
    you really doing a great job with that app you're like a firebase but for graphql : userfriendly and efficient
    🙌 1
  • h

    herrhelms

    11/15/2016, 10:00 PM
    @schickling , @nilan having problems querying my endpoint - do I need to send any headers? react app, cURLing, or using postman.app always gives cloudfront errors -
    The request could not be satisfied.
    😞
  • s

    schickling

    11/15/2016, 10:09 PM
    Hey @herrhelms! I'll reach out to you via PM 🙂
  • e

    emilrmoeller

    11/16/2016, 5:06 AM
    Hi all! I’m getting error
    Code 3008: InsufficientPermissions
    , though i am logged in in client, so i tried removing all field permissions. but i keep getting this error when i from my app requests
    Copy code
    posts(filter: {title: $title}) {
            id
            title
            tags {
              id
              name
            }
          }
    Where tags is a many to many relationship with post, but user too. The same query works fine in playground. Any ideas ?
  • e

    emilrmoeller

    11/16/2016, 5:12 AM
    The relation is added today, so after you added the permissions section to console. i don’t know if it’s connected
  • e

    emilrmoeller

    11/16/2016, 5:40 AM
    It happens with any new relation i try to create. It can be one to many or many to many. The relations i created 2 weeks ago still works very well and doesn’t have permission issues
  • e

    emilrmoeller

    11/16/2016, 5:59 AM
    It had something to do with Permissions, but i fixed it by added no permissions to the whole model. Might be a bug, should i make a github issue?
  • t

    tim2

    11/16/2016, 6:15 AM
    @emilrmoeller what are the permissions on the
    tag
    Model? Can you do allTags with eg. first: 5?
  • t

    tim2

    11/16/2016, 6:16 AM
    Seems like the permissions on the Tag Model are not Set properly
  • t

    tim2

    11/16/2016, 6:17 AM
    Currently we shouldnt have relations effecting the permissions, if yes it's definitely a bug
  • e

    emilrmoeller

    11/16/2016, 6:18 AM
    Hey @tim2 all permissions where for everyone, the issue was i think that the permission model for the
    Post
    model was created before the
    Tags
    was a field on
    Post
    . So it wasn’t permitted, because it wasn’t available when the permission model was created
  • t

    tim2

    11/16/2016, 6:19 AM
    Ok, that makes sense, then it's probably a bug on our side
  • t

    tim2

    11/16/2016, 6:19 AM
    Would be nice if you could create an issue :)
  • e

    emilrmoeller

    11/16/2016, 6:20 AM
    But relation fields doesn’t seem to be available in the permission tool, but adding
    apply to the whole model
    seems to work
  • e

    emilrmoeller

    11/16/2016, 6:20 AM
    Ill do that 🙂
  • t

    tim2

    11/16/2016, 6:20 AM
    Oh that's not how it should be, but good that you could for now find a work around
  • t

    tim2

    11/16/2016, 6:20 AM
    Thanks!
  • e

    emilrmoeller

    11/16/2016, 6:22 AM
    @tim2 hehe nope, i would like it to be as a field hehe, but it’s good for now until a better solution comes up 🙂
  • t

    tim2

    11/16/2016, 6:23 AM
    @emilrmoeller ah I see, we will fix it asap :)
1...454647...637Latest