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

    sashko

    10/19/2016, 7:01 AM
    we don't have any vanilla JS examples
  • s

    sashko

    10/19/2016, 7:01 AM
    that examples list is kind of like "all examples"
  • s

    sashko

    10/19/2016, 7:02 AM
    but most people using Apollo use it with Angular 2 or React right now
  • s

    sashko

    10/19/2016, 7:02 AM
    what are you trying to do?
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:02 AM
    i'm looking at making it work using functional components with preact
  • s

    sashko

    10/19/2016, 7:02 AM
    does preact work with React libraries, like react-redux?
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:04 AM
    yep, but so far trying to avoid that. i'm trying to find the most minimal implementation i can find that combines graphql queries and caches results
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:04 AM
    cache can be a layer on top of redux or something else.
  • s

    sashko

    10/19/2016, 7:06 AM
    well, it depends on what kind of cache you need.
  • s

    sashko

    10/19/2016, 7:06 AM
    I think Apollo is about the simplest thing which 1. gives you a consistent cache that can be updated, and 2. supports all of GraphQL
  • s

    sashko

    10/19/2016, 7:07 AM
    I wouldn't call it "minimal", but it has a minimal API and is very flexible
  • s

    sashko

    10/19/2016, 7:07 AM
    if you compromise on supporting all of GraphQL there are perhaps some other options
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:07 AM
    what do you mean by #2?
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:08 AM
    like subscriptions and things?
  • s

    sashko

    10/19/2016, 7:08 AM
    like, there's cashay which doesn't support directives/nested arrays
  • s

    sashko

    10/19/2016, 7:08 AM
    like
  • s

    sashko

    10/19/2016, 7:08 AM
    even complete normalization is not easy
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:08 AM
    oh gotcha
  • s

    sashko

    10/19/2016, 7:08 AM
    you could also build your own using this: https://github.com/apollostack/graphql-anywhere
  • s

    sashko

    10/19/2016, 7:08 AM
    this is the core "GraphQL" tech inside AC
  • s

    sashko

    10/19/2016, 7:08 AM
    so essentially you just normalize your data, then use this to select it out of the cache
  • s

    sashko

    10/19/2016, 7:09 AM
    Apollo Client does 2 things: 1. normalize and denormalize data, and 2. handles async loading and connecting to UI
  • s

    sashko

    10/19/2016, 7:09 AM
    so this gives you most of (1)
  • s

    sashko

    10/19/2016, 7:09 AM
    if you're into building your own stuff it could be a fun option
  • s

    sashko

    10/19/2016, 7:09 AM
    plus, graphql-anywhere could use some contributors :]
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:09 AM
    ah sweet, i'll definitely look into this
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:10 AM
    thanks for the help!
  • s

    sashko

    10/19/2016, 7:10 AM
    no problem, maybe more info than you bargained for :]
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:11 AM
    nope, really appreciate the details. just sort of assumed apollo was lumped into big solutions for big companies
  • m

    Matt Mueller (Prisma Client PM)

    10/19/2016, 7:11 AM
    but it seems like the client or it's innards could be useful for little ole me 😛
1...272829...637Latest