Permalink
Switch branches/tags
Nothing to show
Commits on Apr 17, 2015
Commits on Apr 16, 2015
  1. Add Graphiti.load_json

    sleepycat committed Apr 16, 2015
    This method loads json into the specifed collection (which needs to
    exist already), using the Arango Bulk Imports API:
    https://docs.arangodb.com/HttpBulkImports/index.html
    
    Graphiti.load_json(JSON.generate({foo: 'bar'}), into: :nodes)
  2. Correct typo in neighbors options

    sleepycat committed Apr 16, 2015
    Apparently Arango is now throwing a error if you mangle one of the
    options, for a traversal.
Commits on Mar 17, 2015
  1. Ignore vim swp files.

    sleepycat committed Mar 17, 2015
Commits on Feb 17, 2015
  1. Add Graphiti.query

    sleepycat committed Feb 17, 2015
    This method allows users to run an aql query on the current db and get
    back the raw json response.
Commits on Feb 12, 2015
  1. Add ability to update persisted hashes.

    sleepycat committed Feb 12, 2015
    Before running the query the existance of the _key attr is checked
    for... if its there, we go ahead and update in Arango. Otherwise return
    false. Maybe an error would have been more appropriate here, but time
    will tell.
  2. Remove irrelevant comments.

    sleepycat committed Feb 12, 2015
    This issue these comments refer to is now resolved.
  3. Use Faraday directly to query the Arango API

    sleepycat committed Feb 12, 2015
    This is a pretty major refactor. The dependancy on Ashikawa was dropped
    and replaced with just using Faraday to make the http requests to the
    API. This means that I no longer need to work around ashikawa's habit of
    stripping off Arango's internal keys or returning objects (eventually I
    will want json).
Commits on Feb 6, 2015
  1. Call to remove should return the deleted document.

    sleepycat committed Feb 6, 2015
    This method duplicates code from the insertion process. This is
    temporary while I look at either fixing ashikawa or dropping it in
    favour of directly using Faraday.
Commits on Jan 21, 2015
  1. Stop flattening arrays.

    sleepycat committed Jan 21, 2015
    It seems the most reasonable thing for these components to accept is an
    array of arrays of documents: [[{}], [{}]].
    This wasn't clear initially but is now.
    Also, it seems that because of none of the graph functions work with an
    edge as an example, the actual input to a component needs to be an array
    of arrays of vertices. That throws a monkeywrench in the works a
    little, since nothing that returns an edge can be chained...
Commits on Jan 20, 2015
  1. Return complete document after insertion.

    sleepycat committed Jan 20, 2015
    Currently Ashikawa::Core::Document does not have a way to return the
    whole document, so hackery ensues...
Commits on Jan 17, 2015
Commits on Jan 14, 2015
  1. Remove repeated db setup code.

    sleepycat committed Jan 14, 2015
    This has been moved into the spec_helper and is run once before the
    suite starts.
  2. Add Graphiti.database

    sleepycat committed Jan 14, 2015
    This method returns the underlying Ashikawa::Core::Database object.
  3. Update readme

    sleepycat committed Jan 14, 2015
  4. Add #edges

    sleepycat committed Jan 14, 2015
    Now calling {foo: 'bar'}.edges will return edges for the given vertex.
Commits on Jan 13, 2015
  1. Implement AQL builder.

    sleepycat committed Jan 13, 2015
    Kind of hairy but its working, and the specs pass.
Commits on Jan 7, 2015
  1. Add Graphiti.truncate

    sleepycat committed Jan 7, 2015
    This method truncates all collections in the current database. Great for
    cleaning up after tests!
Commits on Jan 6, 2015
  1. Initial commit

    sleepycat committed Jan 6, 2015